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

I don't understand what I'm doing wrong!!

It's unclear......I don't understand what I did wrong

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

9 Answers

You need to put / before your h1,h2,h3 do the same with the <p>! Hope this helps!

hey Ramon, your problem is your third paragraph end tag, you shouldn't write like this html <p/> you must write html </p> this is just miss typing.

thanks, itried that and its still saying I need to add a paragraph element under the headline

oh yeah you are right. You also drop first <h1> and <h3> tag, in end tag you should write </h1> or </h3> then you pass your challenge.

Hello, Please provide more details so we can be able to help.

Thanks

Gonzalo Torres del Fierro
PLUS
Gonzalo Torres del Fierro
Courses Plus Student 16,751 Points

<h1> need to be closed as <h1/>

same typo in <h3> bla vla bla vla <h3/>

the rest looks like is ready to be shown.

HE HE

So the request was "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."

You have a typo in the exercise in the closing of <h1> is h1 instead of /h1

read the question word by word

<h1>This is the Main Headline!</h1>

all all tag with element <p>.....</p>

!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> 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>3 Heading</h3>
<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>