* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
48 lines
783 B
Markdown
48 lines
783 B
Markdown
---
|
|
id: 60a3e3396c7b40068ad6996f
|
|
title: Step 6
|
|
challengeType: 0
|
|
dashedName: step-6
|
|
---
|
|
|
|
# --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 Painting</title>
|
|
</head>
|
|
<body>
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
</body>
|
|
</html>
|
|
```
|