alt

The alt element provides alternate text for an image. It is equivalent to the alt attribute on the image element; the attribute is deprecated, so the alt element should be used instead. As an element, alt provides direct text entry within an XML editor and is more easily accessed than an attribute for translation.

Example

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

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

Contains

Doctype Content model
ditabase, topic, task, reference, concept ( text data or keyword or option or parmname or apiname or cmdname or msgnum or varname or wintitle or term or data or data-about or foreign or unknown) (any number)
map, bookmap ( text data or keyword or term or data or data-about or foreign or unknown) (any number)

Contained by

Doctype Parents
bookmap, map, ditabase, topic, task, concept, reference, glossary image

Inheritance:

- topic/alt

Attributes

Name Description Data Type Default Value Required?
%univ-atts; (%select-atts;, %id-atts;, %localization-atts;) A set of related attributes, described at %univ-atts; parameter entity PE not applicable Not applicable
%global-atts; (xtrf, xtrc) A set of related attributes, described at %global-atts; parameter entity PE not applicable Not applicable
class, outputclass Common attributes described in Other common DITA attributes      

Return to main page.

OASIS DITA Language Specification v1.1 -- Committee Draft 02, 8 May 2007
Copyright © OASIS Open 2005, 2007. All Rights Reserved.