Learn Responsive Web Design by Building a Piano - Step 6

Tell us what’s happening:

Describe your issue in detail here.

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" class="black--key"></div>
        <div class="key" class="black--key"></div>
        <div class="key"></div>
        <div class="key" class="black--key"></div>
        <div class="key" class="black--key"></div>
        <div class="key" class="black--key"></div>
      </div>
    </div>

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge Information:

Learn Responsive Web Design by Building a Piano - Step 6

Welcome to the community @nestoranthon29 !

To add the black-- key class, it should just be in the same " key " quotation marks as the first class. Leave a space after the first one and add the black-- key.

class=“first value second value”

Happy coding!

1 Like

Hello @nestoranthon29 Welcome to our forum.
Here, you are asked to add multiple classes to an element. We do this by separating the class names using a space. Check this example.
<element class="class1 class2">text</element>

1 Like

I am not sure why but I cannot find the one where you did describe the issue. I responded to it, too.

Happy coding!

1 Like

I deleted the duplicate post.

1 Like

The other post was deleted as it was a duplicate for the same issue by the same user. However, here is a link that provides more information on classes.

2 Likes

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