What is a body selector?

**Tell us what’s happening:**This is what it tells me " The text is centered again so the link to the CSS file is working. Add another style to the file that changes the background-color property to brown for the body element."
After i do it it says that it is wrong and the hint tells me i should use a body selector.
can someone explain what a body selector is?

   **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> <style background-color="brown">
h1, h2, p {
 text-align: center;

   **Your browser information:**

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

Challenge: Step 19

Link to the challenge:

The first issue is that you’ve put html coding in your css file which will always throw an error.

Second, look at how you did the h1, h2 and p element styling. You need to do the body styling in the same coding format.

If you use p in the css file to style the paragraph element, then what would you use to style the body element?

Hope this helps!

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