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.


Contents

[edit] Example

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


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

[edit] 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) 

[edit] Contained by

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

[edit] Inheritance:

- topic/alt


[edit] 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      

TOC: Language Specification 1.1
Parent topic: Body elements
Previous topic: image
Next topic: object

Retrieved from "http://www.ditawiki.org/index.php/Alt"

This page has been accessed 213 times. This page was last modified 23:59, 12 July 2007.





This page
Discuss this page
Post a comment
Printable version
My pages
Log in / create account