<alt>

The <alt> element provides alternate text for an image. It is equivalent to the @alt attribute on the <image> element; since the @alt attribute is deprecated, use the <alt> element instead. The <alt> element can be more easily edited or translated than the @alt attribute.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

- topic/alt

Example

The markup for alternate text within an image looks like this:

<image href="tip-ing.jpg">
  <alt>Here's a Tip!</alt>
</image> 

Attributes

The following attributes are available on this element: Universal attribute group and @outputclass.

Was this helpful?