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 How to Make a Website Creating HTML Content Include External CSS

Im a little bit confused on what re="stylesheet" is.

What is it exactly for?

2 Answers

Hey Vince,

The "rel" is an attribute that specifies the relationship between the current document and the linked document. So, with rel="stylesheet" you are letting your browser know that that linked item is a style sheet

Hope that helps =)

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Hi Vince,

rel is an attribute for certain HTML tags and it is used in order to specify the relationship between the current document and the linked document - in this case a CSS file. By giving this attribute the value stylesheet the browser will know that the document you are including is an actual stylesheet for this page.

You can find more about the rel attribute here: http://www.w3schools.com/TAgs/att_a_rel.asp