22. XHTML Media Attribute Module

Contents

This section is normative.

The Media Attribute Module defines the media attribute.

22.1. Media Attribute Collection

media = MediaDesc
The value of this attribute specifies the types of media for which the element is intended. When the value of this attribute matches the current processing media, the element is processed as normal; otherwise it is 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