HTML Tutorial >
HTML Tags >
HTML List
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>Ordered list 1.</li>
<li>Ordered list 2.</li>
</ol>
Display:
- Ordered list 1.
- Ordered 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.
Next: HTML Hyperlink
Copyright © 2022 1keydata.com All Rights Reserved Privacy Policy
About Contact