References

Collection of references for web development.

HTML media attribute

Description

Specifies the media type for which the element or the document is designed for.

Values

Value
Operators: and|not|,
Devices: all, print, screen, speech
Values: aspect-ratio, color, color-index, grid, height, monochrome, orientation, resolution, scan, width

Example

<link rel="stylesheet" type="text/css" media="print" href="print-styles.css">