CSS turn background color to brown

Tell us what’s happening:
Describe your issue in detail here.

I think I am forming it properly, but I don’t know. background-color:brown for

I don’t know what to do.

  **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;
}
<body> background-color:brown
</body>
  **Your browser information:**

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

Challenge: Step 19

Link to the challenge:

Hi @matthewgrathwol !

You are using incorrect syntax here.
This HTML

That HTML should not be in your CSS.

Remember that this is the basic syntax for CSS selectors.

selector {
styles go here
}

Make sure to follow that basic syntax for the body

body {background=color: brown

}

I tried this and it didn’t work. I just got done with HTML, and am now learning CSS. I don’t know syntax or anything, etc. I’ll keep trying and ask questions.

Solved it with background-color not =

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