So you want to learn how to create HTML Lists? That’s why you are here right?
Here is a list of HTML list tags you can use.
| <ol> | Defines an ordered list |
| <ul> | Defines an unordered list |
| <li> | Defines a list item |
| <dl> | Defines a definition list |
| <dt> | Defines a term (an item) in a definition list |
| <dd> | Defines a description of a term in a definition list |
| <dir> | Deprecated. Use <ul> instead |
| <menu> | Deprecated. Use <ul> instead |
Here is an example of an unordered list.
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
<ul>
<li>Hockey</li>
<li>Football</li>
</ul>
Result
- Hockey
- Football
<ol>
<li>Hockey</li>
<li>Football</li>
</ol>
Result
- Hockey
- Football
Experiment with the other tags to see what you get. Good luck.