Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:
Describe your issue in detail here.
If I try to parse step 11 code, I get the feedback which reads, “You should have an h1 selector in your style element”. Please which one is the h1 selector? Any help?

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:

TECNO BC2c - Android 10 - Android SDK 29

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

Link to the challenge:

hey,
you don’t have to add the greater then (>)and less then (<)signs in the ruleset
if you remove that signs from your style ruleset then you will pass the test.

1 Like

Hello!
As mentioned in the previous response, it is not necessary to have the opening and closing < h1 > < / h>.

Once those are removed leaving only h1 and the selector with the property and value, the code should pass.

Happy coding! :slight_smile: