DITA provides a large variety of elements, represented as tags, for use across multiple topic types. You don’t need to know every tag to author using DITA XML.

The following table describes the basic DITA XML element categories.

Category Description
Block-level elements

A block-level element always starts on a new line. Oxygen always adds a margin before and after the element.

You don't need to wrap block-level elements with <p> tags, they can exist on their own.

Examples include:

  • <p>

  • <title>

  • <shortdesc>

  • <note>

Inline elements

Inline elements are the opposite of block-level elements:

  • They don't start in a new line.

  • You must wrap them in other tags (like <p> tags).

Examples include:

  • <menucascade>

  • <uicontrol>

  • <codeph>