Learn Basic CSS by Building a Cafe Menu - Step 13

Tell us what’s happening:

I’m not sure how to put in a selector for h1,h2,p step 12 Cafe menu

Your code so far

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

<!-- User Editable Region -->

    <style> h1,h2,p
      h1 {
        text-align: center;
      }
      h2 {
        text-align: center;
      }
      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>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 13

Hey,
When styling elements, you can style them either one by one. for example:

 h2 {
        text-align: center;
      }

Or you can style a list of elements together. You just use a comma to separate them and the rest is the same. This step wants you to style h1,h2, and p with one selector list and remove the other separate selectors.
Good luck!

Thank you so much!!!

1 Like