21. XHTML Media Attribute Module

Contents

This section is normative.

The Media Attribute Module defines the media attribute.

21.1. Media Attribute Collection

media = MediaDesc
The value of this attribute is a comma-separated list of media descriptors for which this access element is intended. When the value of this attribute matches the current processing media, the associated access element is considered active and processed normally; otherwise it is inactive and ignored. The default value for this attribute is all.

Example

<style src="style.css" type="text/css" media="screen" />
<span src="photo.jpg" media="screen">Me at work</span>
<span src="photo-hires.jpg" media="print">Me at work</span>

Implementation: RELAX NG