Header Ads Widget

Ticker

6/random

HTML Ordered Lists



HTML Lists

HTML can display different items in the form of list.Lists are used to present
text in more readable form.Different types of lists are as follows
(1)Ordered Lists
(2)Unordered Lists
(3)Definition Lists
What is Ordered List?
An ordered list is a list of items in which each item is marked with a number or
letter.Ordered list is also known as numbered list.For ordered list html <ol> tag is used to
create an ordered list.It stands for ordered list and <li> tag is used with each item in the
list.It stands for list item and it has no closing tag and </ol> tag is used to closed an ordered
list.
Attributes:
Type: It specifies the number scheme for the list.The default number scheme is 1,2,3...Possible
schemes are :
1 for 1,2,3
A for A,B,C
a for a,b,c
I for Capital Roman Numbers
i for Small Roman Numbers
Start:It specifies the starting number of the list.
Value:It changes the numbering sequence in the middle of the list.

Example:

<html>
<head>
<title>
Minds Mania
</title>
</head>
<body>
<ol type="A">
<li>Yellow
<li>Black
<li>Green
</ol>
</body>
</html>

Next Example

<html>
<head>
<title
Minds Mania
</title>
</head>
<body>
Fruits
<ol>
<li>Banana
<li>Orange
<li>Mango
</ol>
<ol type="I">
<li>London
<li>Karachi
<li>New York
</ol>
</body>
</html>

Post a Comment

0 Comments