Learn Basic CSS by Building a Cafe Menu - Step 12

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

<!-- User Editable Region -->

    <style> 
      h1 {
        text-align: center;
      }h2 
</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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67

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

Link to the challenge:

Just like you centered the h1 element, you need to centre the h2 and p elements respectively, the same way.
After the existing style for the h1 element, add the styling for the h2 element and p element respectively.
I hope this helps.
Thank you.

1 Like

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