3. The most commonly used “inline elements”

The most generic inline elements are also borrowed from HTML: <i> Opens in new window (italic), <b> Opens in new window (bold), <tt> Opens in new window (teletype or monospaced text), <sub> Opens in new window (subscript), <sup> Opens in new window (superscript).
However like with any other document type, you should always try to use the most specific element for your needs. Examples:
  • If you need to specify a filename, do not use <tt>, instead use <filepath> Opens in new window.
  • If you need to specify a variable, do not use <i>, instead use <varname> Opens in new window.
  • If you need to specify the name of a command, do not use <b>, instead use <cmdname> Opens in new window.
DITA has dozens of such useful inline elements. In order to use them, we recommend authoring your documents with a DITA-aware XML editor and browsing through the element names suggested by the editor. Generally these names are very descriptive, so there is no real need to read the documentation.
Remember
Remember
Using the most specific elements rather than the generic <i>, <b>, <tt> elements, means getting nicer deliverables.
Example: Let's suppose you want to refer to the "Open" item of the "File" menu. Do not type <tt>File->Open</tt> which would be rendered as: File->Open. Instead type <menucascade><uicontrol>File</uicontrol><uicontrol>Open</uicontrol></menucascade>, which will be rendered as: FileOpen. Much nicer, isn't it?