Vous êtes sur la page 1sur 3

Priyankar Paul 1

29SCS124

Ex. No: 2
19/01/2011 LISTING TAGS

Aim:
Write a program to display list of items in different styles

Descriptions:
The following html tags are used to display the list of items using different style.

Lists:
There are 3 different kinds of lists which can be displayed using HTML. They are unordered,
orders and definition lists.

Unordered lists:
<ul>
<li> list item 1 <li>
<li> list item 2 <li>
</ul>

Ordered lists:
<ol>
<li> list item 1 <li>
<li> list item 2 <li>
<li> list item 3 <li>
<li> list item 4 <li>
</ol>

Definition lists:

<dl>
<dt>desfition term</dt>
<dd>definition of the term</dd>
<dt>desfition term</dt>
<dd>definition of the term</dd>
</dl>
Priyankar Paul 2
29SCS124

Program:

<html>
<head>
<title>list</title>
</head>
<body>
<p><h1>Welcome</h1></p>
<ul type="square">
<li>Veg section</li>
<ul type=”circle”>
<li>Paneer</li>
<li>Gobi masala</li>
<li>Palak Paneer</li>
</ul>
<li>Non veg Section</li>
<ul type = “circle”>
<li>Chicken Biryani</li>
<li>Mutton Biryani</li>
<li>Mutton</li>
</ul>
</ul>
<ol>
<li>Desert</li>
<ol type=”1” start =1>
<li>Icecream</li>
<li>Juice</li>
</ol>
</ol>
<dl>
<dt>Important places</dt>
<dd> You can get your balance card from the administrative block</dd>
</dl>
</body>
</html>
Priyankar Paul 3
29SCS124

Output:

Result:

Thus the HTML code for listed tags has been done and its output successfully verified.

Vous aimerez peut-être aussi