How do I get past this please?

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>
  <style>
   element {h1
    property: text-align;centre
  } 
  </style>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Step 12

Link to the challenge:

Your selector isn’t correct.

<style>
 element {h1
  property: text-align;centre
} 
</style>

element and property are placeholder values used in the example. They need to be replaced with the correct values.

element {
 property: value;
}

Example:

p {
  color: red;
}

p is the element, color is the property, and red is the value

In your code, h1 is the element, text-align is the property, and centre is the value.


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