Learn Responsive Web Design by Building a Piano - Step 6

the prompt is asking that I add a class of black–key on the second .key element, and I believe that’s what I’ve done. What could I be doing wrong?

      <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>

You can add multiple classes to a single element without adding additional class attributes. Within the existing class attribute value, add another class using this syntax:

<div class="class1 class2"></div>
1 Like

let me give that a try

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