Learn Basic CSS by Building a Cafe Menu - Step 23

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>
      <header>
        <h1>CAMPER CAFE</h1>
        <p>Est. 2020</p>
      </header>
      <main>
        <section>
          <h2>Coffee</h2>
        </section>
      </main>
    </div>
  </body>
</html>
/* file: styles.css */
body {
  background-color: burlywood;
}

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

div {
  width: 300px;
}
body {
  background-color: burlywood;
}

Your browser information:

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

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

Link to the challenge:

Hi,

Can you describe your issue in your own words?

Asking a better question is valuable skills in your learning path

can’t understand how to set a comment tag in css

Hey Jigisha!

Comments are exactly what they sound like:

“Comments” passed on to your fellow programmers or your future self about why you wrote a particular line of code.

For example, if I want to tell my team to only use two particular colors for a button on our website so that a new hire on our team doesn’t randomly change it to something else. I can have a comment just above my line of code like this:

/* only use blue or red for the color properties */

button{
     color : red;
}

In the above code snippet, /* only use blue or red for the color properties */ is a comment. These are removed by the browser before they are run and are only intended for humans to read.

In this challenge, you’re supposed to comment out this line:

just wrap/* */ around this line and all of the tests should pass.

Hope this helps! :smile:

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