Learn Basic CSS by Building a Cafe Menu - Step 11

Where am I going wrong?

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 mobile information:

SM-S928B - Android 14 - Android SDK 34

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

Link to the challenge:

1 Like

You appear to have created this post without editing the template. Please edit your post to 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!

Can you say more about how specifically you got stuck debugging?

Hi @iamthedump69

CSS does not use the same syntax as HTML

Please remove the closing h1 tag from the style element.
Then remove the angular brackets from the opening h1 tag.

Happy coding

2 Likes