Learn Basic CSS by Building a Cafe Menu - Step 13

Task is to “Delete the three existing type selectors and replace them with one selector list that centers the text for the h1 , h2 , and p elements.” I’m not sure where my error is.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

nvm, I had an extra comma!

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