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

CSS How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

barnabasadedoyin
barnabasadedoyin
1,501 Points

External 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
lihaoquan
12,045 Points

It 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
barnabasadedoyin
1,501 Points

Thanks panzer, I'm just wondering that the sample training didn't include it. Nice one, cheers