Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNaoya Yuda
6,185 PointsChallenge Task 1 of 3 I cannot get the correct answer.
Challenge Task 1 of 3 Set the main headline to a heading level 1 element. Then, place the line of text below the main headline inside opening and closing paragraph tags.
On this question, I cannot get the correct answer. Could you please tell me what I am doing wrong and how to get the correct answer? I am not sure if I am understanding the question correctly.
Thank you!
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>Headings and Paragraphs</title>
</head>
<body>
This is the Main Headline!
<h1>Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.
<h1/>
Level 2 Heading
<p>Ice cream candy canes muffin icing pudding muffin jelly topping carrot cake. I love gingerbread dessert jujubes bonbon cupcake tootsie roll I love. Oat cake topping caramels I love cupcake oat cake chocolate topping donut.
<p/>
Level 3 Heading
<p>Cotton candy topping halvah sugar plum gummies soufflé. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.
<p/></body>
</html>
1 Answer
Steven Parker
231,269 PointsThe `h1" tags go around the main headline. That's the line that says "This is the Main Headline!".
Then the paragrph ("p") tags will go around that next line that starts with "Oat cake...".
Also, ending tags have a slash in front of the tag name. "</h1>
", not "<h1/>
"
Naoya Yuda
6,185 PointsNaoya Yuda
6,185 PointsI understood the question now and got it correct. Thank you!