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 {
property: 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>
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.120 Safari/537.36
Challenge: Step 12
Link to the challenge:
Hello,
properties like text-align
don’t need the prefix “property”, you can delete it.
and always put a :
before the value in CSS.
and the opening style
tag needs its >
back!
Thanks sir. God bless you. I will do that
Make sure you close the style angle bracket too
<style>
h1{
text-align: center;
}
</style>
Please tell me how to put it in order with an example
Thanks so much. I will do that now
tolu-soneye already gave you the solution.
Here’s the template for reference:
selector(s) {
property: value;
}
Note that the names above are placeholders, you don’t have to write them,
Much success on the way ahead.
Just a quick addition, check and make sure you’re writing your tags in the right order.
Good luck!
system
Closed
January 2, 2023, 1:56am
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.