<li>

A <li> element is a single item in an ordered (<ol>) or unordered (<ul>) list. When a DITA topic is rendered, numbers and alpha characters are typically displayed with list items in ordered lists, while bullets and dashes are typically displayed with list items in unordered lists.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

- topic/li

Example

This section is non-normative.

<ul>
  <li>This is an item in an unordered list.</li>
  <li>This is another item in an unordered list.</li>
</ul>

Content model

(Text | <dl> | <div> | <fig> | <image> | <lines> | <lq> | <note> | <object> | <ol> | <p> | <pre> | <simpletable> | <sl> | <table> | <ul> | <boolean> | <cite> | <keyword> | <ph> | <q> | <term> | <text> | <tm> | <xref> | <state> | <data> | <data-about> | <foreign> | <unknown> | <itemgroup> | <draft-comment> | <fn> | <indextermref> | <indexterm> | <required-cleanup>)*

Contained by

<ol>, <ul>

Zero or more of the following
  • Text
  • <boolean>
  • <cite>
  • <data>
  • <data-about>
  • <div>
  • <dl>
  • <draft-comment>
  • <fig>
  • <fn>
  • <foreign>
  • <image>
  • <indexterm>
  • <indextermref>
  • <itemgroup>
  • <keyword>
  • <lines>
  • <lq>
  • <note>
  • <object>
  • <ol>
  • <p>
  • <ph>
  • <pre>
  • <q>
  • <required-cleanup>
  • <simpletable>
  • <sl>
  • <state>
  • <table>
  • <term>
  • <text>
  • <tm>
  • <ul>
  • <unknown>
  • <xref>

Contained by

  • <ol>
  • <ul>

Inheritance

- topic/li

The <li> element is a base element type. It is defined in the topic module.

Attributes

The following attributes are available on this element: Universal attribute group and outputclass.