HTML List

Started by VelMurugan, Apr 30, 2009, 08:34 PM

Previous topic - Next topic

VelMurugan

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>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ol>

Display:

   1. Unordered list 1.
   2. Unordered list 2.

Example 2: unordered list.

HTML:
<ul>
<li>Unordered list 1.</li>
<li>Unordered list 2.</li>
</ul>