Learn Responsive Web Design by Building a Piano - Step 6

any tips to add more class value on .key?

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 class="key"></div>
        <div class="key" "black--key"></div></div>
        <div class="key"></div>
        <div class="key"></div>
        <div class="key"></div>
        <div class="key"></div>
        <div class="key"></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/116.0.0.0 Safari/537.36 Edg/116.0.1938.76

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

Link to the challenge:

Hello!
You are doing great!

The .black-key should be entered in the same class attribute as the .key. Just leave a space between them.

Example: class=“black bear” .black and . bear are separate values for the class.
Note only one set of “” are used for the values. Class attributes can have several in one set of quotation marks as long as there is a space between them. Do not insert a comma.
I hope this helps you.

1 Like

thank you so much. its a big help:)

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.