# 18. XHTML Image Module

Contents

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

The Image Module provides basic image embedding, and may be used in some implementations independently of client side image maps. The Image Module supports the following element and attributes:

Elements | Attributes | Minimal Content Model
--- | --- | ---
img | Common | (PCDATA | caption | Text)*

When this module is used, it adds the `img` element to the Text content set of the Text Module.

Implementations: RELAX NG, XML Schema

## 18.1. The img element

Attributes

The Common collection
  A collection of other attribute collections, including: Bi-directional, Core, Edit, Embedding, Events, Hypertext, I18N, Map, and Metainformation

The img element is a holder for embedding attributes such as @src. Since these attributes may be applied to any element, the img element is not strictly necessary, but is included to ease the transition to XHTML2. Like the object element, this element's content is only presented if the referenced resource is unavailable.

In the following example, the W3C logo would be presented if it were available. If it were unavailable, then the enclosed text would be presented.

Example

    <img src="W3C.png">W3C</img>