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:
Help Links:
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>The HTML view of this example:
<li>First Element</li>
<li>Second Element</li>
</ol>
Example for unordered list:
- First Element
- Second Element
<ul>The HTML view of this example:
<li>First Element</li>
<li>Second Element</li>
</ul>
- First Element
- Second Element
Help Links:
No comments:
Post a Comment