Learn Basic CSS by Building a Cafe Menu - Step 14

Tell us what’s happening:

I am so confused right now, I have seen the answers in the forum but I don’t know what to do. Can anyone help me?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      h1, h2, p {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

/* User Editable Region */

   <style>
   h1, h2, p { 
     text-align: center;
   }
   </style>

/* User Editable Region */


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/17.4.1 Safari/605.1.15

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 14

“Make sure to exclude the opening and closing style tags.”

You dont use style tags in a css file. Remove them and it will pass

1 Like