How to add a style to the file that changes the background color to brown for body selector step 18

how to add a style to the file that changes the background color property to brown for the body element using body selector step 18 css

Please post what code you have written so far

hi help step 18 how to use body selectors

hi I’m stuck with step. 18 how to use a body selector

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>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

/* User Editable Region */

/* User Editable Region*/
h1, h2, p {
  text-align: center;
  background-color: brown;
}
/* User editable Region */

/* User Editable Region */


Your browser information:

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

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 18

You appear to have created this post without editing the template. Please edit your post to 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!

Don’t mark the solution button when you didn’t solved your challenge.

step 18 asks me to add style to the file that changes. background color property to brown for the body element and also to use body selector

Add another style to the file that changes the background-color property to brown for the body element.

Challenge is asking you to add selector for body. And make it’s background color brown.

Example

tag {property: value;}

yes add another style to the file that changes. background color to brown for the body element “use” body selector “the word use body selector”

I can’t do it for you. You need to do the challenge yourself. I provided example, and can’t provide original code for learning purpose.
@bmalapane750

Create a Post by clicking on help button you have below your code editor in the challenge. Then anyone can help you.
@bmalapane750

Hello!
Can you please paste your code here, or add the link to the challenge.

thanks, I managed since I’m a beginner I struggle a lot. sometimes it took me two hours on a single step with you that might help to solve the step at a reduced time

You appear to have created this post without editing the template. Please edit your post to 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!

Your welcome. I’m happy to help you. Keep it up.