<OL>—</OL> The <OL> tag encloses an ordered list of <LI> items.
Typically ordered list are rendered as numbered list
START= value The values of the starting number in the ordered list
TYPE=Option Specifies how ordered items are to be marked.
(A|a|I|i|1) A= uppercase letters,
a=lowercase letter,
I=uppercase Roman numerals,
i=lowercase Roman numerals,
1=Digits, the default is 1.
The <OL> (Ordered List) helps keep an organized list with numbers or symbols
^Eg. 1" 2" 3 '''''' or i, ii, iii or a, b, c& where in the list items. If the ranking of items is
desired, we employ <OL> for ordered lists and </OL> as ending tag. To place
individual list items, you should use the <LI> (List Item).
Example"
<OL><L1> Item 1 </OL>
<OL><L1> Item 1
<L1> Item 2
</OL>
An ending tag for a list item </LI> is not required.
Numbers are the default bullets in ordered lists but you can change them using
the TYPE attribute of <OL> tag. This attribute takes one of the two values:
Example,
<OL TYPE = 1 START = 1>
can be used, Number list can also specify the numbering type and starting
number.
For example,
<OL TYPE = i START = 3>
Un-ordered List
<UL>—</UL> The <UL> tag enclose an an ordered list of <LI> items.
Typically ordered list are rendered as symbolic list.
TYPE=Option TYPE specifies how ordered items are to be marked.
(DISK|CIRCLE|SQUARE)
<UL> - </UL> are the starting and ending tags of Unordered lists. List items
are included using the <LI> tag.
Eg : <UL>
<L1> Item 1
<L1> Item 2
</UL>
Unordered lists also support the TYPE attribute that takes disc, circle or square
as its value.
For example,
<UL TYPE = DISC>
Definition List
<DD> The <DD> tag formats text to be used as relative
definitions in the <DL> list
These lists are great for making glossaries. As you know, a glossary consists of
a term and a definition. For HTML Definition lists, which are enclosed between <DL>
and </DL> (Definition List), you have to use <DT> (Definition Title) to indicate the
Term and <DD> (Definition Description) to denote the definition.
For example,
<DL>
<DT> Title 1
<DD> Description 1
<DT> Title 2
<DD> Description 2
</DL>
No comments:
Post a Comment