Piano lesson step 6

Tell us what’s happening:
Describe your issue in detail here.
Hi Im trying now to complete lesson to create a piano but I have this error

Your second .key element should also have a class of black--key.

and I wrote this code

<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>
am I doing something wrong.. thanks please help on this I will appreciate so much..
  **Your code so far**
\ file: <!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>
<!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: 

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53

Challenge: Step 6

Link to the challenge:

1 Like

Multiple classes are written as class="class1 class2".

2 Likes