An unordered list is a list of items. The list items are marked with bullets (typically small black circles), it does not have numbers in the list.
An unordered list starts with the <ul> tag and end with </ul>. list items are defined in between <ul> &</ul>. Each list item is surrounded by the <li> & </li> tag. |
|
<ul> tag is used for unordered list. Between <ul> & </ul> you have to enter list of items. |
|
<li> tag is used for list item. Each list item is surrounded by <li> & </li> tag. |
|
|
Format: |
<ul> <li> item1 </li> <li> item2 </li> …….<li> itemn </li></ul> |
|
Example |
Output |
<ul>
<li>Text Book</li><li>Note Book</li>
<li>Pen</li><li>Pencil</li>
</ul>
|
- Text Book
- Note Book
- Pen
- Pencil
|
|
|
Just write/copy this example inside the body of the HTML file and save the file and open in the browser and see how it looks. |
|
So now you have learned how to create the unordered list in the web page. |