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 trialbarnabasadedoyin
1,501 PointsExternal style sheet
Hi, on external style sheet, it auto gives me this i Sublime text2 <link rel="stylesheet" type="text/css" href="css/main.css">
but i'm not seeing the type="text/css" in our exampl code. Does it matter? Sorry for asking this here.
2 Answers
lihaoquan
12,045 PointsIt just tells the browser what kind of document type the file is ( In this case, it is a TEXT document and is a CSS stylesheet ) , and it might use that information to do something.
This is not required in HTML 5, however, in older versions of HTML, to keep validity, it is needed.
barnabasadedoyin
1,501 PointsThanks panzer, I'm just wondering that the sample training didn't include it. Nice one, cheers