Learn Responsive Web Design by Building a Piano - Step 6

Tell us what’s happening:
I am wondering if I am putting multiple class values correctly together.
Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- User Editable Region -->

    <div id="piano">
      <div class="keys">
        <div class=".key"></div>
        <div class=".key" "black--key"></div>
        <div class=".key"></div>
        <div class=".key"></div>
        <div class=".key" "black--key"></div>
        <div class=".key"></div>
        <div class=".key"></div>

<!-- User Editable Region -->

/* 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/ Safari/537.36

Challenge: Learn Responsive Web Design by Building a Piano - Step 6

Link to the challenge:

In HTML, you can apply multiple classes to an element using the “class” attribute. Each class is separated by a space within the attribute value. Here’s an example:

<div class="value1 value2 value3">
  <!-- your content here -->

In this example, the div element has three classes: “value1”, “value2”, and “value3”. This allows you to apply styles from multiple CSS classes to the same element, making it more flexible and reusable.

So you don’t need extra quote (" " ) symbol and the dot ( . ) before the key is unnecessary

Thanks! much help. I appreciate it :slight_smile:

1 Like

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