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

how do you do this

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

index.html
<!DOCTYPE html>
<html>
<head>

2 Answers

John Steer-Fowler
PLUS
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:

<p>
<head>
<div>
<span>
<h2>

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:

<p></p>
<head></head>
<div></div>
<span></span>
<h2></h2>

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

jaisonbrooks
jaisonbrooks
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>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>

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