<link>

Test cases: assigning external CSS to an HTML document with the link element. The link element may have a media attribute. E.g. (HTML):

<link rel="stylesheet" type="text/css" href="css/link_all.css" media="all" />

See the HTML 4.01 Specification for more information on the link element and the media attribute.

test results: link
User Agent Method
<link media= "all"> <link media= "screen"> <link media= "print"> <link media= "handheld"> <link media= "projection"> <link media= "tv"> <link media= "screen, foo">
Amaya (Win) 7.2 - 8.0 yes yes yes no no no no no
Amaya (Win) 7.2 - 8.0 (print) yes yes yes yes yes yes yes yes
iCab (Mac) 2.9.1 yes yes yes no no no no yes
iCab (Mac) 2.9.1 (print) ? ? ? ? ? ? ? ?
IE (Mac) 5.0 - 5.2.2 yes yes yes no no no no yes
IE (Mac) 5.0 - 5.2.2 (print) yes yes no yes no no no no
IE (Win) 5.0 - 6.0 yes yes yes no no no no yes
IE (Win) 5.0 - 6.0 (print) yes yes no yes no no no no
Konqueror (Linux) 3.0 yes yes yes no no no no yes
Konqueror (Linux) 3.0 (print) yes yes no yes no no no no
Mozilla 0.8 - 1.6 yes yes yes no no no no yes
Mozilla 0.8 - 1.6 (print) yes yes no yes no no no no
Netscape 4.x yes no yes no no no no no
Netscape 4.x (print) yes no yes no no no no no
OmniWeb (Mac) 4.1.1 yes yes yes no no no no yes
OmniWeb (Mac) 4.1.1 (print) ? ? ? ? ? ? ? ?
Opera (Linux) 5.0 - 6.12 yes yes yes no no no no yes
Opera (Linux) 5.0 - 6.12 (print) yes yes no yes no no no no
Opera (Linux) 5.0 - 6.12 (projection) yes yes no no no yes no no
Opera (Win) 3.62 yes yes no no no no no no
Opera (Win) 3.62 (print) ? ? ? ? ? ? ? ?
Opera (Win) 4.02 - 7.10 yes yes yes no no no no yes
Opera (Win) 4.02 - 7.10 (print) yes yes no yes no no no no
Opera (Win) 4.02 - 7.10 (projection) yes yes no no no yes no no
Opera (Win) 7.10 (small screen) yes yes no no yes no no no
Safari (Mac) v. 64 yes yes yes no no no no yes
Safari (Mac) v. 64 (print) ? ? ? ? ? ? ? ?
WebTV 2.6 yes yes yes yes yes yes yes yes
MSN TV 2.8 yes yes yes yes yes yes yes yes
Nokia Mobile Browser 3.01 yes no no no yes no no no
Nokia 6590 yes yes yes no yes no no yes
Openwave 6.0 - 6.2 yes yes no no yes no no no
Palm Tungsten 2.0.1 yes yes yes no no no no yes
SonyEricsson P800 yes yes no no yes no no no

Note: Linux Netscape 4.8 does not use any external CSS for print.

Note: For Netscape 6.1 - 7.02 and other Gecko-based browsers, see the information on Mozilla.