Last Updated on April 26, 2023 by Roshan Parihar
HTML List tag is used to show information in the form of list.
Syntax
1 |
<li>Enter some content here...</li> |
List of HTML List tag
Sr. No. | Tag Name | Description |
---|---|---|
1 | <ul> | Used to show unordered list and it has no special order. We can call it as a bulleted list. See HTML unordered list tag for more details. |
2 | <ol> | Used to show ordered list and its output starts with numbers. We can call it as a numbered list. See HTML ordered list tag for more details. |
3 | <dl> | Used to show description list. We can call it as a Definition list. See HTML dl tag for more details. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<p>List of Games:</p> <ul> <li>Football</li> <li>Cricket</li> <li>Table Tennis</li> </ul> <p>List of some more Games:</p> <ol> <li>Badminton</li> <li>Basketball</li> <li>Baseball</li> </ol> <p>List of Fast Food company with items purchased:</p> <dl> <dt>Mr. Brown</dt> <dd>Hot Cheese Burgor with chilli</dd> <dt>McDonald</dt> <dl>Hot Cheese Pizza with garlic Flavour</dl> </dl> |
Output
List of Games:
- Football
- Cricket
- Table Tennis
List of some more Games:
- Badminton
- Basketball
- Baseball
List of Fast Food company with items purchased:
- Mr. Brown
- Hot Cheese Burgor with chilli
- McDonald
- Hot Cheese Pizza with garlic Flavour
Resources and References
1. W3C Specification.
2. HTML living standard
3. W3C project using Github