The HTML list tag is used to define content in the form of lists. A list is used when you want to define concepts with many features. A concept can be a term you want to describe on your website or blog. The description requires to list out all the available uses, definition and advantages.
Suppose you want to define a table of content for your page. You need to define a list of headings in the table. These headings, then you can describe one by one.
Now, Let’s take a simple example. You want to buy a mobile phone. If you do not list out the functionality of the mobile phones. Probably the chances that you will buy a mobile phone does not match to your requirement. To get rid of this, You create a list of features, go to a retailer and show them the list. The retailer then provides the mobile with the same.
Syntax
1 |
<li>Enter some content here...</li> |
Example
1 2 3 4 5 6 |
<ul> <li>Android mobile</li> <li>windows mobile</li> <li>java mobile</li> <li>simple mobile</li> </ul> |
Output
- Android mobile
- windows mobile
- java mobile
- simple mobile
Check out these all recommended types of list and learn each of them:
- HTML unordered list tag
- HTML ordered list tag
- HTML dl tag