Learn Basic CSS by Building a Cafe Menu - Step 11

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-aline="center"</h1>>
    </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 (iPad; CPU OS 15_7_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.4 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Hello.

In this exersice, you need to add style to your h1. The correct way is using a selector of your element (h1 in this case) and add the style you want, between { }

example: if i want all elements p have the color red style, i need use a selector for this element (p in this case)

<style>
  p {
    color: red;
  }
</style>

In the exercise, your selector is h1 and the style is text-align:center

Try to do this!

Grets.

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