Step 6 - Building Piano - What am I doing wrong?

Hello, I’ve been stuck on this step for the past 2 days. Constant research, but nothing seems to work. Please help. What am I doing wrong?

Step 6 - Building Piano
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.

I tried - on the 2nd, 3rd, 5th, 6th and 7th line:

  <div class="key"> </div>
   <div class="black--key"> </div>

I also tried - on the 2nd, 3rd, 5th, 6th and 7th line:

 <div class="key" class="black--key"> </div>

Please help!
Thanks so much in advance.

link to challenge:

2 Likes

Hello @wquyenle!

I assume you did it right putting the black--key classes on the second, third, fifth, sixth, and seventh .key elements though your format of adding a second class is incorrect as indicated on the above quote.

Here’s a preview of how you should do it… the value is the name of the class.

<element class="value value value"> </element>

Hope that helped…

To add, I would suggest you take a break from practicing. It would help relieve your mind of stress whilst giving it time to process the information you received. I take 15 minute breaks for every hour of work and that works for me in the past few months.

8 Likes

dude, thanks so much for your help. i fixed my code and it worked!

2 Likes

hello here’s my solution at first and fourth div you should only have class=“key” and the second, third, fifth, sixth and seventh as mention at the description you should have a class=“key black–key”

1 Like

may I ask how to fixed the code, I am stuck and I think The frustration is blinding me to the solution

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.