How are bullet lists (unordered lists) represented in DITA?
November 10, 2023
|By Bryan Tipper
In DITA, bulleted or unordered lists can be created to present information in an easy-to-read format. These lists are structured using specific DITA elements to ensure consistency and clarity in the content.
These lists are represented using the <ul>
(unordered list) element. The <ul>
element contains a series of list items, each represented by the <li>
(list item) element. The <li>
element contains the actual list content.
The structure of an unordered list in DITA is:
<ul> (Unordered List)
<li> (List Item)
List content goes here.
</li> (End of List Item)
<li> (List Item)
More list content.
</li> (End of List Item)
</ul> (End of Unordered List)
Example:
This is a sample of how an unordered list might appear in DITA.
<ul>
<li>This is the first item in an unordered list.</li>
<li>Here is the second item.</li>
<li>And this is the third item.</li>
</ul>
In this example, we have an <ul>
element that contains three list items represented by <li>
. This forms a simple unordered list.