Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e78af05201622d4bab8aa.md
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06:00

987 B

id, title, challengeType, dashedName
id title challengeType dashedName
612e78af05201622d4bab8aa Step 3 0 step-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>