Learn Basic CSS by Building a Cafe Menu - Step 11

Not sure where im going wrong it saying this when I check my code:

Sorry, your code does not pass. Don’t give up.
You should have an h1 selector in your style element.

Your code so far

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

<!-- User Editable Region -->

    <style><element "h1"{property:"center";}

<!-- User Editable Region -->

      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>

Your browser information:

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

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

Link to the challenge:


Try removing the element and the quotes around the h1.

element {
 property: value;

In the above the element is replaced by the h1, the property should be text-aligned, and the center should not have quotes.

Good attempt! :slight_smile:

Suggestion: Reset the step and replace the element and property with what is provided in the instructions.

See if that works better.

Thank you very much. It worked

1 Like

:slight_smile: appy to help you!
Keep up the good progress!:slight_smile:

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