<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>
<li> tag lists each item, whether ordered or numbered. Note that each item is indented.
Example 1: Ordered list.
HTML:
<ol>
<li>list 1.</li>
<li>list 2.</li>
</ol>
Display
- list 1.
- list 2.
HTML:
<ul>
<li>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ul>
Display:
- Unordered list 1.
- Unordered list 2.
<ul type="square"> <ul type="disc"> <ul type="circle">
No comments:
Post a Comment