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 trialJason Berry
5,180 PointsIm not quite how I got the challenge task 2 incorrect where it is asking for a header 2 tag and a paragraph tag.
I wold also like to see the answer when I get it wrong to I can remember the correct format next time.
<!DOCTYPE html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
<title>Headings and Paragraphs</title>
</head>
<body>
<h1>This is the Main Headline!</h1>
<p>Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.</p>
<h2>Level 2 Heading<h2>
<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
Cotton candy topping halvah sugar plum gummies soufflé. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.
</body>
</html>
2 Answers
Steven Parker
231,269 PointsThe h2 tags are both start tags instead of a matched pair of start and end tags.
The end tag needs a slash ("</h2>
").
R Arts
18,453 PointsThe answer for task 2 and 3:
<!DOCTYPE html> <html> <head> <link href="styles.css" rel="stylesheet"> <title>Headings and Paragraphs</title> </head> <body> <h1>This is the Main Headline!</h1> <p>Oat cake chocolate bar jelly. Tootsie roll cheesecake sweet gummies candy cookie pudding cotton candy carrot cake. Soufflé caramels brownie oat cake cheesecake.</p>
<h2>Level 2 Heading</h2>
<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>
<h3>Level 3 Heading</h3>
<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>
Steven Parker
231,269 PointsPosting explicit answers without any explanation is strongly discouraged by Treehouse and may be subject to redaction by staff or moderators.
Jason Berry
5,180 PointsJason Berry
5,180 PointsOh I see. Thanks for pointing that out.