Learn Basic CSS by Building a Cafe Menu - Step 11 please I am lost

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

<!-- User Editable Region -->

    <style> 
    <h1>
    element{ property: value;}</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/109.0.0.0 Safari/537.36

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

Link to the challenge:

Please 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!

Step 11

You can add style to an element by specifying it in the style element and setting a property for it like this:

element {
 property: value;
}

Center your h1 element by setting its text-align property to the value center.

I know what the instructions are, but I do not know what about the instructions you would like us to clarify.

I dont understand what i should type. Basically I dont understand the instruction

You should not add HTML syntax inside of the style element. You should only add CSS syntax.

CSS syntax looks like

In this case, you want to style a h1 element, so you would write h1 instead of element. You should

instead of writing the words property and value

so for instance can i write this

<style> 
    <h1>center</h1>
    </style>

No. You are using HTML syntax. You must not use HTML syntax here:

You must use the CSS syntax shown here:

should i write this or i should add any value to it. I am still not getting it
element{
property: value:
}

Yes, you must you CSS syntax.

But, you need to put the correct things in place of element, property, and value.

You need to use the CSS syntax, but you need to style the h1 element to have a text-align property with a value of center.

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