![]() |
|
<li>
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||
When one is creating a listing, it is imperative that each item in the list be identified. This is the HTML method of identifying each item in the list.
The <li> tag cannot work alone. It must be used in conjunction with <ol> or <ul>.
| align= | forces the alignment of the list item according to the arguments below. | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| "left" | ||||||||||||||||||||||||||||||
| "center" | ||||||||||||||||||||||||||||||
| "right" | ||||||||||||||||||||||||||||||
| "justify" | ||||||||||||||||||||||||||||||
class=
|
||||||||||||||||||||||||||||||
clear=
|
"When there is already a figure or table in the margin, you sometimes want to position another figure below the figure in the margin rather than alongside it. The CLEAR attribute allows you to move down unconditionally:" (w3)
Alternatively, you can decide to place the figure alongside the figure in the margin just so long as there is enough room. The minimum width needed is specified as "## en" where ##="the" number of nutts or ### pixels where ### is the number of pixels. |
|||||||||||||||||||||||||||||
"left"
|
"move down until left margin is clear" (w3) | |||||||||||||||||||||||||||||
"right"
|
"move down until right margin is clear" (w3) | |||||||||||||||||||||||||||||
"all"
|
"move down until both margins are clear" (w3) | |||||||||||||||||||||||||||||
"## en"
|
"move down until there is at least 40 en units free" (w3) | |||||||||||||||||||||||||||||
"### pixels"
|
"move down until there is at least 100 pixels free" (w3) | |||||||||||||||||||||||||||||
dingbat=
|
this allows the author to specify a standard icon (see ICONS above) or a dingbat in place of the default bullet. (Dianne Gorman) | |||||||||||||||||||||||||||||
dir=
|
||||||||||||||||||||||||||||||
| "ltr" | ||||||||||||||||||||||||||||||
| "rtl" | ||||||||||||||||||||||||||||||
id=
|
||||||||||||||||||||||||||||||
index=
|
||||||||||||||||||||||||||||||
lang=
|
list of language codes list of country codes |
|||||||||||||||||||||||||||||
md=
|
This attribute specifies the message digest or chyptographic checksum (MD5 in base 64). The MD attribute is generally allowed for all elements which support URI based links. | |||||||||||||||||||||||||||||
skip=
|
"increments the sequence number before rendering the element. It is used when headers have been left out of the sequence. For instance, SKIP="3" advances the sequence number past 3 omitted items." (w3) | |||||||||||||||||||||||||||||
src=
|
this specifies the source of the picture. It takes the "URL" argument. | |||||||||||||||||||||||||||||
style=
|
||||||||||||||||||||||||||||||
title=
|
||||||||||||||||||||||||||||||
| type= <ol>
|
changes the numbering style of the list. | |||||||||||||||||||||||||||||
"A"
|
use large letter. (note the "A" is a capital letter)
<lh>Heading <li>first item <li>second item <li>third item </ol>
|
|||||||||||||||||||||||||||||
"a"
|
uses small letters. (note the "a" is lower case.)
<lh>Heading <li>first item <li>second item <li>third item </ol>
|
|||||||||||||||||||||||||||||
"I"
|
this specifies large Roman numerals. (Note the "I" is upper case.)
<lh>Heading <li>first item <li>second item <li>third item </ol>
|
|||||||||||||||||||||||||||||
"i"
|
specifies small roman numerals. (Note the "i" is lower case.)
<lh>Heading <li>first item <li>second item <li>third item </ol>
|
|||||||||||||||||||||||||||||
"1"
|
this is the default setting, specifying the use of arabic numbers.
<lh>Heading <li>first item <li>second item <li>third item </ol>
|
|||||||||||||||||||||||||||||
| type= <ul>
|
This is different for OL and UL. The lists examples pages give general uses of the type attribute. However, the type attribute can also be used with the list element itself. Example
|
|||||||||||||||||||||||||||||
disc
|
changes the default to a disc | |||||||||||||||||||||||||||||
circle
|
changes the default to a circle | |||||||||||||||||||||||||||||
square
|
changes the default to a square | |||||||||||||||||||||||||||||
value=
|
The presentation of an Ordered List requires a numbering system be used. Setting the value of the <li> element allows the numbering to be started at any point the author wishes. See also the <ol start="X"> element and argument, it can also set the starting value of a list. | |||||||||||||||||||||||||||||