Close this window

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
  1. Milk
  2. Eggs
  3. 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?)
Children (what's this?)name (one, optional), item (one or more, required)
Parents (what's this?)para, content, section, example, meaning, proof, statement, problem, solution
Close this window