Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

i have done all of the step but i still dont understand but it keeps telling me its not right

Your code so far

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

<!-- User Editable Region -->

    <style>
      <h1>{ 
       text-align: center;
      }
      </h1>
    </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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

Hi.
While styling an element you don’t need to add < >, just add the name of the element it its h1 or h2…

Also, you don’t need to add a closing tag ( </h1>) after your style. a simple example of styling an element looks like this:
element name { property: value }
hope this helps!

Kindly use the element selector to style your text instead

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

do it this way

<style>
      Name-of-element {
       text-align: center;
      }
        </style>

Hey there,

I edited your post because you were spoiling the solution code for this step. Please only give hints and tips to questions on this forum and not solutions.

Thanks for your understanding.

2 Likes

Noted, I wasn’t aware of that in the first place; thanks for pointing it out for me.

1 Like
element=h1 property= text-align: center;}

hi there!

welcome to the fcc forum. if you have any question about specific curriculum challenges, use the Help button to create your own topic to that challeneg step.
the Help button appears below the challenge editor, when you attempting to submit wrong code more than three times.

code removed by moderator

hi @abusayid2007

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

Thanks for your suggestion, I will defiantly follow your instruction.

1 Like