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 Treehouse Club: CSS My First Web Page Color Keywords, Hex Colors, and Font Families

Reuven Kishon
Reuven Kishon
5,270 Points

What is the purpose of the "type" attribute of the <link> tag?

I ask because I went ahead and replaced the default google font <link> tag provided in the sample code, with the html code I obtained for a new google font. This new font code did not include a "type" attribute -- and still worked.

2 Answers

Mircea Ungureanu
Mircea Ungureanu
7,483 Points

Hello Reuven, I was wondering that myself since I had a similar experience. While researching the subject I came across this answer on StackOverflow which explains it better than I can. http://stackoverflow.com/questions/5409114/is-type-text-css-necessary-in-a-link-tag Hope it helps.

Reuven Kishon
Reuven Kishon
5,270 Points

Mircea Ungureanu ,

Thanks that was what I was looking for!