Learn Basic CSS by Building a Cafe Menu - Step 22

Tell us what’s happening:
Hi guys just a question

what am i doing wrong with the task when it says add comment which is similar to element and the value is ?

Your code so far

/* file: styles.css */
body {
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/108.0.0.0 Safari/537.36 Edg/108.0.1462.46

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

Link to the challenge:

The instructions say to comment out the background-color property here.

You added an extra comment instead of commenting out the one line

First you need to know what a comment is.
Then you need to know what they are asking for.

A comment is something that is surrounded by /* and */
Anything in the css that has these characters around it, is a comment.

A comment also hides what is within it from the browser. The browser doesn’t do anything with the code or text within the comment.

In this exercise, you are being asked to turn a specific property into a comment.

Use what you know about comments to do that. (Click reset first though)

3 Likes

body {background-color: burlywood;}/background-color: burlywood/

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button 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.

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