Learn Basic CSS by Building a Cafe Menu - Step 27

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div>
      <main>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  /*
  background-color: burlywood;
  */
}

h1, h2, p {
  text-align: center;
}

.menu {
  width: 80%;
  background-color: burlywood;
  margin-left: auto;
  margin-right: auto;
}

Your browser information:

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

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 27

Link to the challenge:

i don’t know what i am doing wrong.
i tried adding

but it is not going

you were asked to add a class attribute with a given value.
Just like all HTML attributes, you need to add the class attribute in the opening tag of the element in question.

Thank you. I have gotten through

1 Like

thank you this helped me so much.
my native language its spanish ,i needed another way of what they where asking me to do lol

1 Like

what do you mean IN the opening tag?

like this for example <div class="example"></div> .

for some strange reason it says its incorrect <div class:“menu”> thats my answer and the correction says “Your div element should have the menu class.”

please take a look at my class. You used a “:” instead of “=”.

lol i just realized thank you also do you know what the difference between : and = is?

“=” assigns a value to something. In HTML this is just the token the parser expects at that place. I wouldn’t think about it to much why it is a “=” instead of “:”. Just use the right thing :slight_smile: