Learn Basic CSS by Building a Cafe Menu - Step 11

what is my fault? what can I do?

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

<!-- User Editable Region -->

    <style>
    {<h1 text-align:"center";}
    </style>

<!-- User Editable Region -->

  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0

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

Link to the challenge:

Take a look at the example syntax again:

element {
 property: value;
}

Does that match your syntax?

{ <h1
    text-align:"center";
}
1 Like

The instruction:

element {
 property: value;
}

Your solution:

 {<h1 
  text-align:"center";
}
  • Delete the left angle bracket and the left curly brace before the h1 element selector
  • Add the left curly brace after the h1
  • Delete the double quotes around the word center

i have the same probleme, how can I put h1 en style element ?

                 <style> <h1
                                            {
                                     text-align: center;
                                             }>CAMPER CAFE</h1>
                 </style>

@sara030

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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