alt

alt — A text-only annotation, often used for accessibility.

Synopsis

alt ::=

Attributes

Common attributes.

No additional attributes.

Description

The alt element was originally added to DocBook to provide an alternative, usually text, presentation for graphical elements. In DocBook V5.0, it was made a “ubiquitous” element so that it's available almost everywhere. The semantic intent of alt is simply that it provides alternative text, often for accessibility.

Processing expectations

May be formatted inline or as a displayed block, depending on context. It is not usually rendered where it occurs, rather it is used to annotate some other aspect of the presentation.

For example, in an HTML presentation, the alt for a media object would likely provide the text of the alt attribute for the HTML img element.

In the context of an acronym, the alt could provide the title attribute for the HTML abbr element allowing the expansion to be presented appropriately to the user (as a “tooltip”, for example, or read aloud).

Attributes

Common attributes.

any attribute

Any attribute in any other explicit namespace

Parents

These elements contain alt: abbrev, acronym, address, area (db.area), area (db.area.inareaset), artpagenums, attribution, authorinitials, bibliocoverage, biblioid, bibliomisc, bibliomixed, bibliomset, bibliorelation, bibliosource, bridgehead, citation, citebiblioid, citetitle, city, confdates, confnum, confsponsor, conftitle, contractnum, contractsponsor, contrib, country, edition, email, emphasis (db._emphasis), emphasis (db.emphasis), entry, equation, fax, firstname, firstterm (db._firstterm), firstterm (db.firstterm), foreignphrase (db._foreignphrase), givenname, glosssee, glossseealso, glossterm (db._glossterm), glossterm (db.glossterm), holder, honorific, informalequation, informaltable, inlineequation, inlinemediaobject, inlinestagedir, issuenum, jobtitle, label, line, lineage, link, literal, literallayout, mathphrase, mediaobject, member, meta (db.meta.content), olink, optional, orgdiv, orgname, otheraddr, othername, pagenums, para, personname, phone, phrase (db._phrase), phrase (db.phrase), pob, postcode, primary, productname, productnumber, publishername, quote (db._quote), quote (db.quote), releaseinfo, remark, revnumber, revremark, secondary, see, seealso, seriesvolnums, shortaffil, simpara, state, street, subscript, subtitle, superscript, surname, table, templatename, term, termdef, tertiary, title, titleabbrev, trademark, uri, volumenum, wordasword, year.

Children

The following elements occur in alt: text, inlinemediaobject.