Learn Basic CSS by Building a Cafe Menu - Step 12

Hello coders, how do i go about adding a property and value to the h1 element, I am so stuck . thanks

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <style>
    h1 {
      text-align: centre;
      }
  </style>
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

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

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

Link to the challenge:

@EMINENTUTD
The only thing you need to do is add the h1 element in your style section and use the property text-align: center to center it as shown in the example given

use center instead of “centre”;

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