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!

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

how do you do this

You'll need a closing tag with a slash, like this: <html></html> what does this mean?

<!DOCTYPE html>

2 Answers

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Farah,

In HTML, we use what we call html 'tags' in our code that define page elements.

Html tags looks like this:


Html requires these tags to be closed so that when the webpage is being rendered, it knows where the element ends.

Closing a tag requires using the same tag, but with a slash in it:


The slash helps the web browser know that this is a closing tag and not an opening tag

I hope this helps explain it a little further

Keep up the good work

4,608 Points

Like the comment above, HTML is all about tags, some need to be closed with an ending tag like such: </tag_name> and others can be closed like this: <tag attribute_name="blah" />.

Your basic markup for an HTML page is like such:

<!DOCTYPE html>
<title>Page Title</title>
<h1>My First Heading</h1>
<p>My first paragraph.</p>

Take a look at the information over at this site. it'll help explain html markup and how it works. http://www.w3schools.com/html/html_intro.asp