Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-box-model/step-006.md
Nicholas Carrigan (he/him) b36cdbafd1 chore: rename "part" to "step" (#43934)
* chore: rename part to step

* chore: update metas

* chore: more renaming

* chore: update tooling

* chore: update frontmatter

* chore(tools): title testing
2021-10-21 18:07:52 +01:00

774 B

id, title, challengeType, dashedName
id title challengeType dashedName
60a3e3396c7b40068ad6996f Step 6 0 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.

assert(document.querySelectorAll('div').length === 1)

The div element should have a class with the value canvas.

assert(document.querySelector('div').className.split(' ').includes('canvas'))

--seed--

--seed-contents--

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Rothko</title>
  </head>
  <body>
--fcc-editable-region--

--fcc-editable-region--
  </body>
</html>