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!
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
Routine Poutine26,050 Points
Do you ever <link></link> to anything else besides a "stylesheet"?
I only know one use for links, which is
<link rel="stylesheet"></link>. What other relationships might a link tag have?
You can also use it for app icons:
And I also used it recently for a
manifest.json file for a Progressive Web App.
I think the description below from the MDN web docs describes its use nicely:
The HTML External Resource Link element (<link>) specifies relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and mobile home screen/app icons) among other things.
Jamie ReardonTreehouse Project Reviewer
The href attribute is the attribute that link elements use to point towards a file path of a file.
<link rel="stylesheet" type="text/css" href="css/style.css">
You can find out more info on the link element here:
Also, I noticed in your example question of the link element that you used a closing tag, link elements are self-closing (empty) tags, they don't use a closing tag.