Click to See Complete Forum and Search --> : CSS Media?


Ascendancy
10-13-2006, 04:27 PM
I was viewing the source of a website I found and I saw this in the head:

<link href="/newcss.css" rel="stylesheet" type="text/css" media="screen" />

I understand what everything in there means except for the media="screen". Can anybody explain that?

Kravvitz
10-13-2006, 04:35 PM
These explain:
http://www.w3.org/TR/html401/present/styles.html#adef-media
http://www.w3.org/TR/html401/types.html#type-media-descriptors

Ascendancy
10-13-2006, 04:41 PM
Oh, so it doesn't really need to be there?

*Technically*

Kravvitz
10-13-2006, 04:46 PM
Yes, that attribute is optional. If you leave it out, it defaults to "screen".