Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

Camper cafe step 11 I’m not sure how to code it I’ve done everything I can do but my code still doesn’t pass its says to add an h1 sector into my style element but its not working what am I doing wrong?

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>

<!-- User Editable Region -->

    <style>
     <h1> text-align:center;
    </style>

<!-- User Editable Region -->

  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your browser information:

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

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

Hi and welcome to the forum. :wave:

The h1 selector will just be h1 without the angle brackets. You are missing curly brackets.

Here’s an example using a p element:

p {
  color: red;
}

You can review this here: https://www.w3schools.com/CSS/css_selectors.asp

When in doubt you can search for examples of syntax and further documentation.

1 Like

Thank you so much the example was a great help too

1 Like