Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:
Says to have an h1 selector in style element.
What am I doing wrong?

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style><h1>{
    text-align: center;
    }</h1>
    </style>
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your mobile information:

iPhone - iOS15.8.3

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

Link to the challenge:

1 Like

This is not an H1 selector. This is an opening H1 tag.

Hey,
In CSS you don’t need the <> to style an element. You simply add the element name, whether it’s h1 or p or div or any other element. Try removing <> from the h1 and it becomes a h1 selector.
Good luck!

1 Like

Please don’t post pictures of the code or instructions. Thanks

1 Like