Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




List tag

List is used to show the items list wise. if we want to show some items under a heading then we may use list there.

There are two type of list in html. 1) Ordered list 2) Unordered list

Ordered list: denotes with <ol></ol> Unordered list denotes with <ul></ul>

        <strong>Ordered list</strong>
<ol>
<li>This is first list.</li>
<li>This is second list.</li>
</ol>
<strong>Unordered list</strong>
<ul>
<li>This is first list.</li>
<li>This is second list.</li>
</ul>

The output will :

List Image

Definition List


In definition list we can give the definition of the list and can give the header of list. list header will come with <dl> and list will come with <dd>

        <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Definition List</title>
</head>
<body>
<dl>
<dt>Asp.net - www.xpode.com</dt>
<dd>
1. Asp.net tutorials, CSS, ajax, c#, design pattrens
</dd>
<dd>
2. Asp.net tutorials, CSS, ajax, c#, design pattrens
</dd>
<br />
<br />
<dt>HTML - www.xpode.com</dt>
<dd>
1. Knowledge
</dd>
<dd>
2. World is now here
</dd>
</dl>
</body>
</html>
Will have output:

Definition List

Share this article   |    Print    |    Article read by 3391 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles: No related article
Related Interview Questions: No related interview question