This section lists the tags often used with HTML lists: <ol>,
<ul>, and <li>.
<ol>
The <ol> tag specifies that the following list is ordered.
<ul>
The <ul> tag specifies that the following list is unordered.
<li>
The <li> tag lists each item, whether ordered or numbered. Note that
each item is indented.
Example 1: ordered list.
HTML:
<ol>
<li>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ol>
Display:
- Unordered list 1.
- Unordered list 2.
Example 2: unordered list.
HTML:
<ul>
<li>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ul>
Display:
- Unordered list 1.
- Unordered list 2.