What are different tags to list items in HTML?
HTML has three kinds of lists.
| Tag | List type | Item tag |
|---|---|---|
<ul> | Unordered list (bullets) | <li> |
<ol> | Ordered list (numbers) | <li> |
<dl> | Description list | <dt> term and <dd> description |
<ul>
<li>Apple</li>
<li>Mango</li>
</ul>
<ol>
<li>Step one</li>
<li>Step two</li>
</ol>
<dl>
<dt>HTML</dt>
<dd>Structure of a page</dd>
</dl>
Output in the browser
- Apple
- Mango
- Step one
- Step two
- HTML
- Structure of a page
Lists can be nested. See HTML Lists.
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |