Learn Basic CSS by Building a Cafe Menu - Step 11

HI I DON’T KNOW WHAT I’M DOING WRONG HERE LIKE I TRIED A MILLION DIFFERENT WAYS STILL DOESN’T WORK PLZ HELP:,)

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      <h1 {text-align: center;}></h1>
    </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/107.0.0.0 Safari/537.36

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

Link to the challenge:

Welcome to our community!
Please follow the given rule:
image
h1 is an element,
text-align is a property,
center is a value.

hi:) i followed it many times but each time there’s an error saying the

should be nested in the style element, to which i followed. i just don’t know what im doing wrong:/

Your code looks like this:
image
But it should be like this:

<style>
  h1 {
property: value;
}
</style>

your property is ‘text-align’, and the value is ‘center’.