XML technologies / DocBook / Block elements / Annotations / Adding inline annotations

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

The element alt provides an element with brief additional information. An inline annotation can, for example, supply the expanded form of an acronym. The following example shows the code.

Example: A simple inline annotation

<para>   
    <acronym>XML<alt>eXtensible Markup Language</alt></acronym> ...    
</para>

A graphic can also be included inside alt using inlinemediaobject.

The presentation depends on the output format. In (X)HTML, tooltips appear when the user pauses the mouse over the element. They have no purpose in printable formats such as PDF and are therefore suppressed there.

  

back to top