Learn Responsive Web Design by Building a Piano - Step 5

Tell us what’s happening:

Describe your issue in detail here.
how to do step 5?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Piano</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  </head>
  <body>

<!-- User Editable Region -->

    <div id="piano">
      <div class=".keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
       <div class="keys"> </div>
      </div>
    </div>

<!-- User Editable Region -->

  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Responsive Web Design by Building a Piano - Step 5

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

1 Like

Welcome!

I think it is to be key class not keys for the seven within the keys.

Hope this helps you!

Happy coding!

1 Like

Welcome to the forum!

You should re read the task. You created seven extra <div> elements. This is good.

However, they are not inside of the <div class=".keys"> </div> as they should be. There is a typo on this line also, you must have added a period before the class name. You can select classes using CSS with a . but in HTML it does not belong.

Finally once all seven <div class="keys"> </div> are inside of the corrected <div class="keys"> </div> element…there is still one more typo. You gave each <div> a class of keys, but re read the instructions. Shouldn’t it be something else?

best of luck!

1 Like