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

JavaScript Treehouse Club - MASH MASH - HTML What in the Head

Mahmoud Amin
PLUS
Mahmoud Amin
Courses Plus Student 6,269 Points

Meta and Link tags

Why do meta and link tags are opened <meta> or <link> but not closed like other tags </meta> or </link>

Ryan Zimmerman
Ryan Zimmerman
3,854 Points

Because all of the information that will be put in the will be inside of the <>. <link "info needed">"no info needed"</link>

2 Answers

Steven Parker
Steven Parker
231,269 Points

Void elements only have a start tag; end tags must not be specified for void elements.

Here is the complete list of void elements, in alphabetic order: area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr.

Some of the most common void elements are img and input.

these link do ot need closing tags because there will be no content inside it ever