Close this window

Using the <list> tag

Description

The list tag is used to organize items into a list. Lists can be either inline or block, and the element offers a variety of different attributes that control the display and behavior of the list.

Example

This CNXML:


<list id="grocerylist">
  <title>Grocery List</title>
  <item>Milk</item>
  <item>Eggs</item>
  <item>Sugar</item>
</list> 
        

Results in this display:

Grocery List

Example

This CNXML:


<list id="write-numbers-list"
      list-type="enumerated"
      start-value="50"
      mark-suffix=":"
      item-sep=".">
  <title>How to Write Some Numbers</title>
  <item>Fifty</item> 
  <item>Fifty-one</item> 
  <item>Fifty-two</item>
</list>
        

Results in this display:

How to Write Some Numbers
  1. 50: Fifty.
  2. 51: Fifty-one.
  3. 52: Fifty-two.

Attributes(what's this?)

Children(what's this?)

label (one, optional), title (one, optional), item (one or more, required)

Parents(what's this?)

content, section, preformat, para, quote, footnote, note, item, example, problem, solution, commentary, meaning, statement, proof, entry, label, title, cite-title, cite, link, emphasis, term, sub, sup, foreign, code, caption, audio, flash, video, java-applet, image, labview, download
Close this window