Highlighting Domain Elements

The highlight domain elements in DITA are used to apply semantic emphasis and inline styling to text content.

b (Bold)

The b element identifies text that should receive strong visual emphasis.

Example: Always review the production deployment checklist before publishing.

i (Italic)

The i element identifies text that should receive italic styling.

Example: The Latin phrase in situ means “in its original place.”

u (Underline)

The u element identifies text that should be underlined.

Example: The following field is required: Customer Account Number.

tt (Teletype)

The tt element identifies inline monospaced or teletype-style text.

Example: Enter the value ENABLE_LOGGING=true in the configuration file.

sup (Superscript)

The sup element identifies superscript text.

Example: Einstein’s equation is written as E = mc2.

sub (Subscript)

The sub element identifies subscript text.

Example: Water is represented chemically as H2O.

Mixed Highlight Elements

Highlight domain elements are often combined within the same paragraph.

The production environment uses the variable SERVER_MODE, the chemical formula for water is H2O, and Einstein’s formula is E = mc2.

Some organizations use italic text for emphasis, while others prefer underlined text.