Pedantic Question on <link types>

I am not sure if this is the appropriate venue to ask my question, so apologies if it is indeed the wrong one.

After diving into some CSS the last few days, I have a question that I cannot find an answer to anywhere… probably because it is most pedantic of a question. All the same, I really would love to find an answer.

When linking style-sheets, why is the type attribute “text/css” and NOT “css/text”?

Generally speaking, it tells the user agent that the media is plain text, first, to let it know that it can read in and parse it as plain text before parsing it to the DOM as CSS.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.