A list item is an item
in either an ordered or unordered list.
Syntax
XDITA
<li>
inside <ol>
or <ul>
HDITA
<li>
inside <ol>
or <ul>
MDITA (core and extended profiles)
-
, +
, or *
for unordered list, and 0
-9
and .
or )
for ordered list
Attributes
The available attributes vary based on the
authoring format:
XDITA and HDITA
The following attributes are available on this element: ID
attributes , localization attributes , universal
attributes , and
@props
.
MDITA
There is no attribute support for
the MDITA core profile. For the MDITA extended profile,
attributes can be specified by using the HDITA
representation.
Examples This section is non-normative.
Example 1. XDITA example
The following example demonstrates the use of list item in an XDITA topic.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD LIGHTWEIGHT DITA Topic//EN" "lw-topic.dtd">
<topic id="franchise-plan">
<title>Make a plan! Start your future today!</title>
<body>
<ol>
<li><p>Contact one of our franchise advisors</p></li>
<li><p>Pick a location for your restaurant</p></li>
<li><p>Follow our franchise guide</p></li>
</ol>
</body>
</topic>
Example 2. HDITA example
The following example demonstrates the use of list item in an HDITA topic.
<!DOCTYPE html>
<title>Make a plan! Start your future today!</title>
<body>
<article id="franchise-plan">
<h1>Make a plan! Start your future today!</h1>
<ol>
<li>
<p>Contact one of our franchise advisors</p>
</li>
<li>
<p>Pick a location for your restaurant</p>
</li>
<li>
<p>Follow our franchise guide</p>
</li>
</ol>
</article>
</body>
Example 3. MDITA example
The following example demonstrates the use of list item (ordered list) in an MDITA
topic.
# Make a plan! Start your future today!
1. Contact one of our franchise advisors
2. Pick a location for your restaurant
3. Follow our franchise guide