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 Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Review: Getting Familiar with HTML and CSS

Miriam Allman
PLUS
Miriam Allman
Courses Plus Student 1,761 Points

Please close the following HTML tag: <h1>Welcome to my webpage

i dont understand how to close the tag

2 Answers

louiecamacho
louiecamacho
10,980 Points

It just means you add a </H1>

So HTML tags should always come in pairs, open and close. ie. <table></table>, <html></html>, <body></body>

Patrick Bamford
Patrick Bamford
1,172 Points

Your HTML line of code should look like; <h1> Whatever You'd like your first title heading to be for the page here </h1>

The opening tag will be <h1>, this opening tag needs to be "closed" with its closing tag which is, </h1>. What ever you type between those two tags will be your 1st level heading for that page. Almost all HTML tags need to be closed with the appropriate closing tag. There are a few exceptions though such as an img which is self-closing <img src="file.img " alt=" "> this is a self-closing tag. Hope this helps.

Closed: <h1></h1>  
<body></body>

Self-closing: <img src="" alt="">   
<br />