H1 selector in style element?

Tell us what’s happening:
its telling me to add an h1 selector to the style element

  **Your code so far**
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style element {
    property: text-align="center";
  }
  </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 (X11; CrOS x86_64 14588.123.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:

The code below is invalid.

You need to write CSS within the style element.
Should look like this:

<style>
    the-element-you-want-to-add-style-to {
        property: value;
     }
</style>
1 Like

You have to add the h2 element in the CSS style, which is in the head section.