Piano Course: Step 6 - can somebody help?

Tell us what’s happening:
Describe your issue in detail here.
i don’t what’s happening i knew i answer it correctly but i keep getting the error messages. the question is:
(Remember that a class attribute can have multiple values. To separate your white keys from your black keys, you’ll add a second class value of black--key . Add this to your second, third, fifth, sixth, and seventh .key elements.)

still having i’m having the error: Your second .key element should also have a class of black--key .

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <title>Piano</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
  <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>
</body>
</html>
/* file: styles.css */

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 6

Link to the challenge:

1 Like

you don’t want to specify another one class attribute.
class="class1 class2 class3"

1 Like

well that was new to me. i didn’t know it. thank you appreciate it.

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