// References / HTML OL, UL and LI Tags

Posted The: 23/05/2008 - AT: 16:15

Edited The: 15/08/2008 - AT: 20:49

The <ol> and <ul> tags are used to create lists. Ol stands for ordered lists, while ul stands for unordered lists. Both tags are used togetter with <li> Tags.

They are both useful to make your pages more accessible for screen readers. Used right, you don't need to inclose your lists, or navigation menus in division tags, since ol and ul are block level elements, you can use them to your advantage.

Example:

<ol>
 <li><a href="http://www.blueboden.com/"></a></li>
</ol>

The above is a list with a simple link, and shows how to use ol togetter with li tags, li stands for list item. For each item you need an additional li around it, example below:

<ul>
 <li><h3>Heading</h3></li>
 <li><p>Item 1</p></li>
 <li><p>Item 2</p></li>
</ul>

Note:You are also allowed to use headings and paragraphs inside li tags, like done above.

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial
  8. SEO Tutorial

Checked At:03:05

5 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.146836042404 seconds

Welcome Guest