Using the
<list> tag
Description
The list tag is used to organize items
into a list, which may be bulleted, numbered, inline, or named.
Example
This CNXML:
<list id="grocerylist" type="enumerated">
<name>Grocery List</name>
<item>Milk</item>
<item>Eggs</item>
<item>Sugar</item>
</list>
Results in this display:
Grocery List
- Milk
- Eggs
- Sugar
Example
This CNXML:
<list id="groceryorigins" type="named-item">
<name>Grocery Origins</name>
<item><name>Milk</name>Comes from cows</item>
<item><name>Eggs</name>Come from hens</item>
<item><name>Sugar</name>Comes from sugar cane</item>
</list>
Results in this display:
|
Grocery Origins
|
|
Milk
|
- |
Comes from cows |
|
Eggs
|
- |
Come from hens |
|
Sugar
|
- |
Comes from sugar cane |
Attributes
(what's this?)
-
type (optional):
Makes the list ordered, unordered, inline, or bulleted by
names of the items.
Possible values:
- bulleted - Bullets the list of items (default).
- enumerated - Creates a list in which each item is numbered in order.
- inline - Includes the list in the current line of text.
- named-item - Lists the items by the names you enter for each one.
-
id (required): A unique
identifier, whose value must begin with a letter and contain
only letters, numbers, hyphens, underscores, colons, and/or
periods (no spaces).