Files
freeCodeCamp/curriculum/challenges/english/01-responsive-web-design/css-piano/part-003.md
Nicholas Carrigan (he/him) 2cf4a7d787 feat(curriculum): add piano project (#43364)
* feat: i broke it horribly

* fix: background colour first

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: missing asserts

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: apply shaun's review suggestions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* fix: remove extra background

* fix: meta order

* feat: clarify descriptions

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2021-09-13 17:51:42 +01:00

987 B

id, title, challengeType, dashedName
id title challengeType dashedName
612e78af05201622d4bab8aa Part 3 0 part-3

--description--

Time to start working on the piano. Create a div element within your body element with the id set to piano.

--hints--

You should create a new div element.

const div = document.querySelector('div');
assert.exists(div);

Your div should be within your body element.

const div = document.querySelector('div');
assert(div?.parentElement?.localName === 'body');

Your div should have the id set to piano.

const div = document.querySelector('div');
assert(div?.getAttribute('id') === 'piano');

--seed--

--seed-contents--

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Responsive Web Design Piano</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>
  --fcc-editable-region--

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