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 trial

HTML HTML Basics Getting Started with HTML Headings and Paragraphs Challenge

Challenge 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!

index.html
<!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&eacute; 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&eacute;. Ice cream danish donut sugar plum. Macaroon carrot cake gummies. Caramels oat cake chocolate cake.
  <p/></body>
</html>

I understood the question now and got it correct. Thank you!

1 Answer

Steven Parker
Steven Parker
229,644 Points

The `h1" tags go around the main headline. That's the line that says "This is the Main Headline!". :wink:

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. :point_right: "</h1>", not "<h1/>"