Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612e804c54d5e7308d7ebe56.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

1.2 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
612e804c54d5e7308d7ebe56 Step 5 0 step-5

--description--

Within your .keys element, add seven div elements. Give them all the class key.

--hints--

You should create seven new div elements.

const divDivDiv = document.querySelectorAll('div');
assert(divDivDiv?.length === 9);

Your seven new div elements should be within your .keys element.

const keys = document.querySelector('.keys');
assert([...keys?.children].length === 7);
assert([...keys?.children].every(child => child?.tagName === 'DIV'));

Your seven new div elements should all have the class set to key.

const keys = document.querySelector('.keys');
assert([...keys?.children].every(child => child?.classList?.contains('key')));

--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--
    <div id="piano">
      <div class="keys"></div>
    </div>
    --fcc-editable-region--
  </body>
</html>