Learn Basic CSS by Building a Cafe Menu - Step 15

Tell us what’s happening:

please help me
error: you should not have any style tags in your code

Cafe Menu h1, h2, p { text-align: center; }

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      h1, h2, p {
        text-align: center;
      }
    </style>
  </head>

<!-- User Editable Region -->

  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */
h1, h2, p {
  text-align: center;
}

Your browser information:

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

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 15

so why haven’t you deleted the style tags?

didn’t understand what u r saying

There is a style tag /element in your HTML.

You’ve put the same styling code into your CSS, so you should remove the <style> element from your HTML file.

Buddy this step is telling you to remove the style tag and all it’s content

Because now no need these elements !!

Hope you understand :blush: !!

thank you,
i got it!

2 Likes

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