List tags in HTML 5
1. <li>:-
We use this tag to indicate that a
list will be used in this tag. The list will contain a list item. Its contents can be the value which will be number from where we want to start like 5. It is not mandatory to give number. We can simply write a list item.
Syntax:
<li> Item we want to give
in list. </li>
Code:
- <!DOCTYPE HTML>
- <html>
- <body>
- <ol>
- <li> list </li>
- <li> item </li>
- </ol>
- </body>
- </html>
Output:

2. <ol>:- We use this tag to indicate
that we are going to start an ordered list.

Attributes:
number from where list items will be started.
number from where the list will be started and then continue.
Syntax:
<ol
start
="Number from where you want to start your list items">
<li> Item we want to give in list. </li>
</ol>
<li> Item we want to give in list. </li>
</ol>
Code:
- <!DOCTYPE HTML>
- <html>
- <body>
- <ol start="5">
- <li> I m list tag </li>
- <li> I m ol tag </li>
- </ol>
- </body>
- </html>

3. <ul>:-We can use this attribute to
Show a list without any order. So in this tag, we use bulleted lists which
has no number.
<li> List item you want to display </li>
</ul>
- <!DOCTYPE HTML>
- <html>
- <body>
- <ul>
- <li> I m
- <b> ul</b> tag
- <li> I m unordered list </li>
- </ul>
- </body>
- </html>

<dt> Term you want to use </dt>
<dd> Description </dd>
- <!DOCTYPE HTML>
- <html>
- <body>
- <ul>
- <li> I m
- <b> ul</b> tag
- <li> I m unordered list </li>
- </ul>
- <dl>
- <dt> HTML </dt>
- <dd> Hypertext Markup Language </dd>
- </dl>
- </body>
- </html>

5. <dt>:-
This tag is used to specify a term that has some identity in the real world.
- <!DOCTYPE HTML >
- <html>
- <body>
- <dl>
- <dt> ASP</dt>
- <dd>
- <b>Active Server Pages</b>
- </dd>
- </dl>
- </body>
- </html>

6. <dd>:- This tag is used to show
description of some term that has some identity in the real world.
- <!DOCTYPE HTML >
- <html>
- <body>
- <dl>
- <dt> DS</dt>
- <dd>
- <b> Data Structure </b>
- </dd>
- </dl>
- </body>
- </html>

Vijay PrativadiPosted Jan 23, 2012, 12:34 AM
Good Work Monika....Keep Posting More Technical Stuff!!