I need help on 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">
   <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"/>
       <h1>CAMPER CAFE</h1>
       <p>Est. 2020</p>
/* file: styles.css */
body {
<div> background-color /*comment here*/ : burlywood; </div>

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

div {
 width: 300px;
   **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Safari/537.36

Challenge: Step 23

Link to the challenge:

We started with this:

body {
  background-color: burlywood;

The instructions were:

Comments in CSS look like this:

/* comment here */

In your style sheet, comment out the line containing the background-color property and value, so you can see the effect of only styling div element. This will make the background white again.

And you did this:

body {
<div> background-color /*comment here*/ : burlywood; </div>

That <div> stuff, you didn’t need to add. The point is that that with this commented out that you will see div styling. And “comment here” is just for explanatory purposes - it is not normally part a comment. You put /* before and */ the thing we want to be a comment. A comment can be some text to explain something to future programmers or as a way to “hide” code so it doesn’t do anything, what we are doing here.

For example, if I had this:

h1 {
  color: red;
  background-color: blue;

And someone told me to comment out the color attribute (so it will have no effect), I would do:

  /* color: red; */
  background-color: blue;

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