Tell us what’s happening:
I keep receiving “Hint: You should add a new h2 selector.”
I’ve tried a few other things in addition to this—including (but not limited to) the following:
- adding a line break in between the first “{” and type selector (of each element)—but that returns the previous hint or the following: Hint: Your
h1
element should have atext-align
ofcenter
. - rewriting all elements within one set of curly braces
h1, h2, p {
text-align: center;
}
but that gives me the following error message “Hint: You should not change the existingh1
selector.”
What’s wrong with my code?
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cafe Menu</title>
<style>
h1 {
text-align: center;
}
h2 {
text-align: center;
}
p {
text-align: center;
}
</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/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: Learn Basic CSS by Building a Cafe Menu - Step 12
Link to the challenge: