Numbered Lists
September 17, 2001
In HTML to create a numbered list, the only difference is that you'd use the <ol>(ordered list element)
to create a list, and again use the <li> element again to represent each list item:
<ol>
<li>Point 1</li>
<li>Point 2</li>
<li>Point 3</li>
</ol>
Numbered lists in Curl use the enumerate format, which works in a similar way, once again using the item
format to define the individual items. So to construct a list of items you would need to use the following:
{enumerate
{item ...}
{item ...}
{item ...}
}
The enumerate format has no specialist options, the numbers in the list are assigned simple in
order of precedence:
|| numberedlist.curl
{curl 1.7 applet}
{applet license = "development"}
{enumerate
{item Point 1}
{item Point 2}
{item Point 3}
}
This would display the following:
As you can see the numbers are added automatically to the bullet points. However, it is possible to use
the normal character options to affect the contents of the list. For example to turn the individual list
items red, we could do the following:
|| numbered2.curl
{curl 1.7 applet}
{applet license = "development"}
{enumerate color="red",
{item Point 1}
{item Point 2}
{item Point 3}
}
Lists
Early Adopter Curl
Definition Lists
|