Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:
Describe your issue in detail here.
What is the problem?

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 {
  /*comment here*/ background-color: burlywood;
}

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

div {
  width: 300px;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like

I have a problem with comment i should out in CSS and i can’t figure out how to insert it correctly

What is given in your ‘body’ element should become a comment.

1 Like

they want you to comment out the whole background-color line…

2 Likes

do I have to put the comment inside the body element?

You have some code in the body selector already. It is the background-colour property and its value.

They want you to use the comment characters to comment this whole line out. (Just this line and nothing else)

1 Like

Excuse me but i still don’t understand

The characters /* and */ are used to comment things out.

This makes the stuff in between these characters invisible to the browser.

/* woohoo I am invisible */

The exercise has asked you to comment out the line of code that has the burlywood background colour right? So just do that.

1 Like

Ok thanks and excuse me

1 Like

I still don’t understand my mistake. Excuse me but i’m new with coding.

Okay. Do you have a question about the comment characters and how they work?
I am not sure which part of this exercise is giving you trouble so it would help if you can explain what is not clear.

1 Like

I understand. Thanks

1 Like