Can you include lists within DITA table cells?

Yes, lists can be included within DITA table cells. DITA supports the integration of various elements, including lists, which allows for more structured and organized content presentation within table cells.

In DITA, table cells can contain a wide range of content, including plain text, inline elements, block-level elements, and structured content like lists. This flexibility is particularly useful to present detailed information or explanations within a table.

Methods of Including Lists in Table Cells

Plain Text

Plain text can be inserted directly in a table cell without any special formatting. This is useful for simple and straightforward content.

<entry>Plain text content in a table cell.</entry>

Inline Elements

DITA allows the use of inline elements such as <b>, <i>, or <code> within table cells to format specific parts of the content.

<entry>This is <b>bold</b> and this is <i>italic</i> text.</entry>

Block-Level Elements

Block-level elements like paragraphs or section elements within table cells. This enables a more effective content structure.

    <p>This is a paragraph within a table cell.</p>
    <p>Another paragraph in the same cell.</p>

Structured Lists

Ordered and unordered lists can be integrated within table cells to present information in an organized manner. This is especially useful for listing items or creating bullet points.

Unordered List

      <li>Item 1</li>
      <li>Item 2</li>
      <li>Item 3</li>

Ordered List

      <li>Step 1</li>
      <li>Step 2</li>
      <li>Step 3</li>