Learn Responsive Web Design by Building a Piano - Step 5

Can someone tell me what im doing incorrect?

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="key"> </div>
        <div class="key"> </div>
        <div class="key"> </div>
        <div class="key"> </div> 
        <div class="key"> </div>
        <div class="key"> </div>
        <div class="key"> </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/110.0.0.0 Safari/537.36

Challenge: Learn Responsive Web Design by Building a Piano - Step 5

Link to the challenge:

The .key div elements should be nested within the .keys element. Currently they are placed below the .keys element and not nested in it.

<!-- This is an example of nesting -->
<div>
  <p>This is a paragraph nested within a div element</p>
</div>
1 Like

Thank you that has worked!!

1 Like