Learn Basic CSS by Building a Cafe Menu - Step 12

Hi, where should I add the new h2…?

Your code so far

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

Your mobile information:

SM-A032F - Android 13 - Android SDK 33

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

Link to the challenge:

**Tell us what’s happening

Hi what’s an h2 selector?

Your code so far

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

Your mobile information:

SM-A032F - Android 13 - Android SDK 33

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

Link to the challenge:

1 Like

Hi,
in this step you are styling the h2 and p elements so you should add your selectors inside the <style></style>. Don’t add <h2></h2> tags, instead use the css selectors for those elements.
Good luck!

Hey,
in your code, this

 h1 {
      
    }

is a selector. It’s used to select an element from the html and style it.
This may help you learn more about css selectors.

1 Like

Hi @Rethabile

I went ahead and combined your posts for you. In the future, just reply to the original thread to add further updates.

Thanks.

1 Like