Stuck on Step 12 of Cafe Menu, code seems to be working but shows error?

I’m stuck on step 12. My code seems to be working on the right hand side but it’s telling me that my code does not pass and the hint is :“You should have an h1 selector in your style element.”

  **Your code so far**

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

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

Challenge: Step 12

Link to the challenge:

It looks like you have a bunch of extra spaces between “h1” and “{”. That could be it.

I’ve tried taking all the spaces out an unfortunately not a fix.

When I run your code it passes. Are you by any chance using Safari? It has been causing problems lately.

I’m on Google Chrome, I made it through the first assignment fine but this one isn’t playing nice.

1 Like

I got stuck on this one. for some reason it worked when I took out the semi-colon but I don’t know why

1 Like

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