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 Treehouse Club: HTML Publish a Story HTML Structure

Beverly Banks
Beverly Banks
1,919 Points

https://teamtreehouse.com/library/html-structure-2

Code will not work on Code Challenge Question 4. Not sure what I am doing wrong? Any suggestions? Thanks!

index.html
<!DOCTYPE html>
<p>
  <html>
    <head>
    </head>
    <body>
      <h1>
        <h2>
          <body> </body>
    </p> <html> </html>

2 Answers

alastair cooper
alastair cooper
30,617 Points

you have an unnecessary p tag and an html tag at the end of your code. and the h1 and h2 tags need closing. try this:

<!DOCTYPE html>
<html>
<head>

</head>
<body>

<h1>heading here </h1>

<h2>smaller heading here</h2>

<p>paragraph here</p>

</body>
</html>

keep going. you'll get the hang of it.

Beverly Banks
Beverly Banks
1,919 Points

Alastair,

Thanks for your help & encouraging words!