| 
									
										
										
										
											2021-09-10 09:17:03 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | id: 60a3e3396c7b40068ad6996f | 
					
						
							| 
									
										
										
										
											2021-10-21 10:07:52 -07:00
										 |  |  | title: Step 6 | 
					
						
							| 
									
										
										
										
											2021-09-10 09:17:03 -07:00
										 |  |  | challengeType: 0 | 
					
						
							| 
									
										
										
										
											2021-10-21 10:07:52 -07:00
										 |  |  | dashedName: step-6 | 
					
						
							| 
									
										
										
										
											2021-09-10 09:17:03 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --description--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Add a `div` element in the `body`. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Set the `class` attribute equal to `canvas`. For example, `<div class="my-div">`. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This will act as the canvas for your painting. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --hints--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Your code should have a `div` element. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert(document.querySelectorAll('div').length === 1) | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The `div` element should have a `class` with the value `canvas`. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert(document.querySelector('div').className.split(' ').includes('canvas')) | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --seed--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## --seed-contents--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```html | 
					
						
							|  |  |  | <!DOCTYPE html> | 
					
						
							|  |  |  | <html lang="en"> | 
					
						
							|  |  |  |   <head> | 
					
						
							|  |  |  |     <meta charset="UTF-8"> | 
					
						
							|  |  |  |     <title>Rothko</title> | 
					
						
							|  |  |  |   </head> | 
					
						
							|  |  |  |   <body> | 
					
						
							|  |  |  | --fcc-editable-region-- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | --fcc-editable-region-- | 
					
						
							|  |  |  |   </body> | 
					
						
							|  |  |  | </html> | 
					
						
							|  |  |  | ``` |