Learn Basic CSS by Building a Cafe Menu - Step 18

Tell us what’s happening:
I can’t seem to figure out how to use the body element. Any help is appreciated. Thanks!

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:105.0) Gecko/20100101 Firefox/105.0

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

Link to the challenge:

Styling the body element is just like styling any other element. You need to create a separate CSS rule set for the body element and then add the styling for the body there.

1 Like

Thank you very much for your help. I was able to pass this lesson.

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