Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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