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!