HTML & CSS TUTORIAL 2

In this tutorial we will learn about "how to create list of items?"


Types of list  :
      1. definition list
      2. ordered list
      3. unordered list

    1. definition list : it is used to create a list which has definition of its data                                  items, and explanation. It has two parts i.e. data term                                      and definition details.

    2. ordered list : it is used to create a list which has a particular order of its                              list items i.e. it contains the numbered list items.
   
    3. unordered list : it is used to create a list which has unordered list items                                   i.e. do not posses numbered list items.

CONSIDER THE FOLLOWING CODE:-

<html>
<head>
<title> creation of list</title>
</head>
<body>
<h5>toppers with rank are :</h5>
<ol>
<li>ram</li>
<li>shyam</li>
<li>arun</li>
<li>robin</li>
</ol>

<h5>student selected are :</h5>
<ul>
<li>ram</li>
<li>shyam</li>
<li>arun</li>
<li>robin</li>
</ul>

<dl>
<dt>definition list :</dt>
<dd>it is used to create a list which has definition of its data items, and explanation. It has two parts i.e. data term and definition details</dt>
</dl>
</body>
</html>


OUTPUT OF ABOVE CODE IS:-
toppers with rank are :
  1. ram
  2. shyam
  3. arun
  4. robin
student selected are :
  • ram
  • shyam
  • arun
  • robin
definition list :
it is used to create a list which has definition of its data items, and explanation. It has two parts i.e. data term and definition details
  

Share this

Related Posts

Previous
Next Post »

Powered by Blogger.

Popular Posts