Professional Documents
Culture Documents
HTML List
<LI> Apples
<LI> Banana
<LI> Grapes
</UL>
Value Description
</OL>
The Start Attribute
Normally, browsers automatically number ordered list items beginning
with the Arabic numerals 1. The start attribute for the <OL> tag let you
change that beginning value. To start numbering a list at 5, for example
you may write:
<ol Start=“5”>
</ol>
Output:
The Type Attribute:
<html>
<body>
<ol Start="8" type="i">
</ol>
</body>
</html>
The result produced are shown below:
Definition List
A definition list (coded as <DL>) usually
consist of alternating a definition term DL Tag
(coded as <DT>) and a definition
description (coded as <DD>). Web browser Type: Container Element
generally format the definition on a new
line and indent it. Function: Define a
definitionlist
<dl>
<dt> HTML
<dd> Hypertext markup language is a language that define
webpage.
<dt> Computer
<dd> An electronic device for storing and processing data.
</dl>
</body>
</html>
The output will look like:
Nested Lists
List can be nested. You can also have a number of paragraphs, each containing a
nested list in a single list items.
<html>
<li> Two Other states : </li>
<body>
<ol type="a">
<ul>
<li>West Bengal</li>
<li> A few new Indian States:</li>
<li>Karnataka</li>
<ol type="i">
</ul>
<li> Jharkhand </li>
</body>
<li> Uttaranchal </li>
</html>
<li> Chhattisgarh </li>
</ol>
The nested list, as coded above is displayed as shown below:
Nested List Program:
<html>
<head>
<title> Nested List </title>
</head>
<body>
<ul>
<li> Hardware</li>
<ol>
<li> Monitor
<li> Printer
</ol>
<li> Software</li>
<ol>
<li> Application Software
<li> System Software
</ol>
</ul>
</body>
</html>
Thank You