Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

media Redirect 4

« media

Summary

media specifies the intended destination medium for style information.

Syntax

medium = stylesheet.media 
stylesheet.media =medium

Parameters

  • medium is a string describing a single medium or a comma-separated list.

Example

<link rel="StyleSheet" href="document.css" type="text/css" media="screen" />

Notes

The default value for media is "screen."

Specification

DOM Level 2 Styles - STYLESHEET

 

Document Tags and Contributors

 Contributors to this page: Sheppy
 Last updated by: Sheppy,