Learn Basic CSS by Building a Cafe Menu - Step 19

where did i go wrong? it is asking 4 a body selector
kindly help:<

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

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


  **Your browser information:**

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

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

Link to the challenge:

hi there,
a body selector in your css-style-sheet is needed. It can be created just like any other selector.
The then added background-color will turn the whole body to brown, if set like that…
By now your css has got a multiple selector for h1,h2,p. , only.
Create an own-standing one for the body with a background-color rule.

sry
but where do i put it?

In another line.
just how you put your h1,h2,p {
}
Your body selector is just like this :
body {
}

oh yay it worked
ty and have a great day:>

1 Like