Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

I’ve looked at the forum for this already and nothing helps. I am still very very very new to this and I do not understand " You should have an h1 selector in your style element."
I’ve tried it different ways, such as
< style > < h1 >
{ text-align : center ;
} < /h1 >
I still do not understand. Please be patient with me and guide me through this. Please don’t give me the direct answer but get me close enough that I can be like “OHHHHH!”

Your code so far

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


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

  </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/123.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Hi there! Next time please share your code properly. How to do:
Forum code formatting

In this step look again at the example in the description:

element {
 property: value;
}

You have to style your h1 element.
So h1 is your element, text-align is your property and center is a value

I have no idea how this forums part of the site works i just started using this yesterday, but thank you. I still am unfortunately confused.

No problem, try to follow my pattern

1 Like

Oh. My. God. I tried it that way the first time and it didnt work but now it does-
Thank you very much, was getting really frustrated.

1 Like

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