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">
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
      <h1 {text-align: center;}></h1>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>

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:

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

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:

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