HTML Linking Resources Link 'media' attribute


Example

<link rel="stylesheet" href="test.css" media="print">

Media specifies what style sheet should be used for what type of media. Using the print value would only display that style sheet for print pages.

The value of this attribute can be any of the mediatype values (similar to a CSS media query).