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 trialMahmoud Amin
Courses Plus Student 6,269 PointsMeta and Link tags
Why do meta and link tags are opened <meta> or <link> but not closed like other tags </meta> or </link>
2 Answers
Steven Parker
231,169 Pointsmeta and link are "void elements". Void elements can have attributes but not content.
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.
terminator genesys
1,969 Pointsthese link do ot need closing tags because there will be no content inside it ever
Ryan Zimmerman
3,854 PointsRyan Zimmerman
3,854 PointsBecause all of the information that will be put in the will be inside of the <>. <link "info needed">"no info needed"</link>