Creating Lists using HTML

List Item
Ordered List
Unordered List
Definition Lists

Table of Contents

List Item

Syntax : <LI>list item

top of page ORDERED LIST UNORDERED LIST DEFINITION LIST LIST HEADERS

Ordered List

Syntax : <OL>numbered list</OL>
For example the following code :
<OL>
<LI>list item 1
<LI>list item 2
<LI>list item 3
</OL>

Produces the following list:

  1. list item 1
  2. list item 2
  3. list item 3

top of page LIST ITEM UNORDERED LIST DEFINITION LIST LIST HEADERS

Unordered List

Syntax : <UL>bulleted list</UL>

For example the following code :
<UL>
<LI>list item 1
<LI>list item 2
<LI>list item 3
</UL>

Produces the following list:

  • list item 1
  • list item 2
  • list item 3

top of page LIST ITEM ORDERED LIST DEFINITION LIST LIST HEADERS

Defininition List

Syntax : <DL>definition list</DL>

For example the following code :
<DL>
<DT>term list item 1
<DD>definition list item 2
<DD>definition list item 3
</DL>

Produces the following list:

term list item 1
definition list item 2
definition list item 3

top of page LIST ITEM ORDERED LIST UNORDERED LIST LIST HEADERS

List Headers

Syntax : <LH>list header</LH>

For example the following code :
<UL>
<LH>List Header</LH>
<LI>list item
<LI>list item
</UL>

Produces the following list:

    List Header

  • list item
  • list item

top of page LIST ITEM ORDERED LIST UNORDERED LIST DEFINITION LIST

top of page TABLE OF CONTENTS