skip to contentstylized crane logoWhite Crane Education

Frame Tags

XHTML allows developers to create three kinds of lists: ordered, unordered and definition. The different types of lists can be nested within each other to create an outline style format.

Examples

List Type XHTML Output
unordered
<ul>
  <li>List Item 1</li>
  <li>List Item 2</li>
  <li>List Item 3</li>
</ul>
  • List Item 1
  • List Item 2
  • List Item 3
unordered
<ol>
  <li>List Item 1</li>
  <li>List Item 2</li>
  <li>List Item 3</li>
</ol>
  1. List Item 1
  2. List Item 2
  3. List Item 3
definition
<dl>
  <dt>Term 1</dt>
    <dd>Term 1's definition</dd>
  <dt>Term 2</dt>
    <dd>Term 2's definition</dd>
  <dt>Term 3</dt>
    <dd>Term 3's definition</dd>
</dl>
Term 1
Term 1's definition
Term 2
Term 2's definition
Term 3
Term 3's definition

Cross-Refrerence