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>
 <style> <h1> text-align=center; </h1> </style>
    
  </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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Safari/605.1.15

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

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

yes, I forgot to put it
I need to now how to put text-align; center

you must follow the template given to you in the exercise to write a CSS selector.

element {
 property: value;
}

If I want to write a css selector that selects the body element for example, then I would write it as follows

body {

}

Then inside the curly braces area I would write the properties and their values.
So the word text-align is a property name and the value is center.
text-align: center
that is how you would write that.

Try this exercise again and keep the template in mind as you type.

1 Like

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