HTML List


 
 
 

  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>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>

Display:

  • Unordered list 1.
  • Unordered list 2.


Next: HTML Hyperlink

Site Map   |   Resources

Link to this page: If you find this page useful, we encourage you to link to this page. Simply copy and paste the code below to your website, blog, or profile.





    Copyright 2006, 2007, 2008 1keydata.com     Privacy Policy