Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening: Yeah i just dont mnkw what their are asking for what dk they mean by create and h1 selector?
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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

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

Link to the challenge:

Hello.

In this step, you need to create a style for h1

Between <style> and </style> you need to create a selector. In this case, that selector is h1 with a rule (in this case text-align: center)
Every rule, has a property (in this case text-align) and a value (in this case center)

The correect way to create a style, is puting the selector and then the rule between the opening and closing braces ( { })

Look this example. I want to give color red to h1:

h1 {
  color: red;
}

Check this example and adjust your code.

Grets.

1 Like

Ok bro thanku God bless

1 Like

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