Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

Where I’m I to have put “h1” selector in my style.

Your code so far

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

<!-- User Editable Region -->

    <style> text-align {property: 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

Hello!
So text-align is supposed to be your property, not your selector. Your selector is supposed to be h1. Change the text-align to h1
Then your property name should be text-align. Change the property to text-align
Okay so this is how it looks in the example:

element {
  property: value;
}

and here is an example. My element name is div and I am adding a height property with the value set to 37px:

div {
  height: 37px;
}
1 Like