alloy
February 8, 2023, 10:16am
1
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>
</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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Challenge: Learn Basic CSS by Building a Cafe Menu - Step 11
Link to the challenge:
alloy
February 8, 2023, 10:18am
2
alloy:
<style>
</style>
pls assist on how to create style for h1
abz2023
February 8, 2023, 11:16am
3
It’s telling you to follow what’s in the instructions.
the h1 element followed by { }
. Inside the braces, you need to place the property followed by :
and then the value followed by ;
It tells you in the instructions what property and value to put.
I hope this helps.
Thank you.
1 Like
alloy
February 8, 2023, 12:07pm
4
Salamat much i got it na
h1 {
text-align: center;}
h2 {
text-align: center;}
p {
text-align: center;}
abz2023
February 8, 2023, 12:11pm
5
It only tells you to centre the h1 element.
What you’ve written above for h1 is correct.
You don’t need to style the h2
and p
. Delete that.
alloy
February 8, 2023, 12:14pm
6
copy and done deleted many thanks