.:: Welcome To My Personal Blog ::.

Thursday, April 21, 2011

Web designing - HTML Tutorial - 7

Lists in HTML:

Lists are of two kinds. They are -
                                               1. ordered list
                                               2. unordered list

For unordered list, <ul> tag is used - <ul> for starting and </ul> for ending the tag. ul stands for "unordered list".
For ordered list, <ol> tag is used - <ol> for starting and </ol> for ending the tag. ol stands for "ordered list".

<li> tag is used for each list element - <li> is for starting and </li> for ending.



Example for ordered list:
<ol>
<li>First Element</li>
<li>Second Element</li>
</ol> 
        The HTML view of this example:

  1. First Element
  2. Second Element
Example for unordered list:
<ul>
<li>First Element</li>
<li>Second Element</li>
</ul>
        The HTML view of this example:
  • First Element
  • Second Element



Help Links:




No comments:

Post a Comment

Popular Posts