20. XHTML Media Attribute Module

Contents

This section is informative. For the normative version, see [XHTML2].

The Media Attribute Module defines the media attribute. When this module is selected, it activates the Media attribute collection.

20.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>

When this module is selected, the Media Attribute Collection is included in the Common attribute collection.

Implementations: RELAX NG, XML Schema