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

Can someone please show me how to do this task? I'm a total nube! Write the opening and closing head and body elements

I keep changing things around but it shows me the same "bummer" message over and over again.....I need real help

index.html
<!DOCTYPE html>
<html>head>/html>
  <html>Steve's attempt to use html but i am tottaly confused!</html>










    <html>Steve has no clue what he is doing</html>

1 Answer

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 48,850 Points

The HTML tag is the top level tag, you nest head and body within. Head is where info about the page and scripts that get loaded along with document go. Body is where you put the content of your page that renders in the browser. HTML is a declarative language that allows you to build a nested structure of elements.

<!DOCTYPE html>
<html> <---- opening HTML tag
   <head> <---- opening HEAD tag
  </head> <---- closing HEAD tag
  <body> <---- opening body tag
  </body> <---- closing body tag
</html> <---- closing HTML tag