Skip to Main Content or Page Contents

HTML Tutorial 8. Lists

Unordered Lists, Ordered Lists and Definition Lists: Tags <ul>, <li>, <ol>, <dl>

Results per page:

Match: any search words all search words

Page Contents- Ordered Lists

Ordered Lists       <ol>

On Other Pages

Unordered Lists    <ul>

Description Lists  <dl>

Ordered List: Tag <ol>

Sample Code

The default Ordered List is Numbered 1., 2., 3, etc.

  1. one
  2. two
  3. three
  4. etc.
<ol>
<li>one</li>
<li> two </li>
<li>three</li>
<li>etc.</li> </ol>

You can change the type of ordering such as alphabetical, roman numarals etc with additioal HTML code

Element Description / Comments End Tag Attributes

<ul>

The ul element is the container for the entire Unordered List.

Req. compact, type

<ol>

The ol element is the container for the entire Ordered List

Req. compact, type, start

<li>

The li element is used for each line of the list

Opt. type, value

John's Recommendation: Always use closing tags with optional tags.