Learn Basic CSS by Building a Cafe Menu - Step 15

How do I do this because I don’t understand this part?
Describe your issue in detail here.

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style>
    h1, h2, p {
      text-align: center;
    }
  </style>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
/* file: styles.css */
h1 {link rel="text-align: center" h1 type="selector" href="style.css/> styles.css;
  }
h2  {link rel="text-align: center" h2 type="selector" href="style.css/> styles.css;
  }
 p {link rel="text-align: center" p type="selector" href="style.css/> styles.css;
  }

  **Your browser information:**

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

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

Link to the challenge:

Styles in css follow this syntax

element { property: value}
if several elements have one style like you have in your code then

element1, element2, element3 {property: value}

in summary just take this part of your code and paste it into the stylesheet

ok, thank you so much.

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