Learn Basic CSS by Building a Cafe Menu - Step 14

It says to rewrite the styles you created in style.css, I’ve tried listing in a row with commas and individually as a typical CSS would be but I keep getting the error: your styles.css should have the h1,h2,p selectors. Not sure what I’m doing wrong?

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 */
h1 {

}
h2 {

}
p {

}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

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

Link to the challenge:

This is the code they want you to copy.

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