Ordered and Unordered Lists
Ordered and Unordered Lists
LISTS
By
M.HEMAMALINI
LIST
• When we list the item without numbers , it is
called an unordered list.
• When we number them, it is called an
ordered list.
• Ex.
• Consider the foll. test
• The Department of computer science offers
the following courses:
• B.Sc computer science
• M.Sc Computer science
• PGDCA
• This is an example of an unordered list.
Example
Consider the following text
<LI> M.Phil
<LI> Ph.D
</UL>
PLAIN ATTRIBUTE
In the unordered list, if we do not have any
bullets, we can use the plain attribute in the
<UL> tag as follows.
<UL PLAIN>
</body>
<html>
ORDERED LIST
Lists which appear with numbers are called
ordered lists.
The HTML code for as ordered list is similar to that
<LI> PGDCA
</OL>
<OL>
</OL>
TYPE ATTRIBUTE
Instead of numerals, we can have letters
A,B,C… or a,b,c… etc. or roman letters in the
ordering of the listed items.
This is specified by the type attribute in the
<OL> tag.
Symbol Meaning
1 Numbers
A Upper Case letters A,B,C..
a Lower Case letters a,b,c…
I Upper case Roman numerals I,II,III…. etc
i Lower case Roman numerals i,ii,iii…. etc
• The Department of computer science offers
the following courses:
• <OL TYPE = A>
• <LI> B.Sc computer science
• <LI> M.C.A
• <LI> M.Sc Computer science
• <LI> PGDCA
• <LI> M.Phil
• <LI> Ph.D
• </OL>
• This is an example of an ordered list.
• The Department of computer science offers
the following courses:
• <OL TYPE = I>
• <LI> B.Sc computer science
• <LI> M.C.A
• <LI> M.Sc Computer science
• <LI> PGDCA
• <LI> M.Phil
• <LI> Ph.D
• </OL>
• This is an example of an ordered list.
<HTML>
<HEAD>
<TITLE>ORDERED LIST</TITLE>
</HEAD>
<BODY>
<h4> Department of computer science </h4>
<OL TYPE = a>
<LI> B.Sc computer science
<LI> M.C.A
<LI> M.Sc Computer science
<LI> PGDCA
<LI> M.Phil
<LI> Ph.D
</OL>
<h4> Department of Mathematics </h4>
<OL TYPE = a start = 7>
<LI> B.Sc Mathematics
<LI> M.Sc Mathematics
<LI> M.Phil Mathematics
</OL>