You are here:  NetStrider » Tutorials » HTMLRef » Commands » LI «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <LI> Command next

Command Syntax:

<LI>list item

Identifies a list item element in:

  • directory lists - (<DIR>)
  • ordered lists - (<OL>)
  • unordered lists - (<UL>)
The command is unpaired.

See also:  <DIR>, <OL>, <UL>.

Examples:

Shopping List:
<DIR>
  <LI>Butter
  <LI>Eggs
  <LI>Milk
  <LI>Sugar
</DIR>

Shopping List:

  • Butter
  • Eggs
  • Milk
  • Sugar
  • Shopping List:
    <MENU>
      <LI>Butter
      <LI>Eggs
      <LI>Milk
      <LI>Sugar
    </MENU>

    Shopping List:

  • Butter
  • Eggs
  • Milk
  • Sugar
  • Shopping List:
    <OL type="a">
      <LI>Butter
      <LI>Eggs
      <LI>Milk
      <LI>Sugar
    </OL>

    Shopping List:

    1. Butter
    2. Eggs
    3. Milk
    4. Sugar

    Shopping List:
    <UL type="square">
      <LI>Butter
      <LI>Eggs
      <LI>Milk
      <LI>Sugar
    </UL>

    Shopping List:

    • Butter
    • Eggs
    • Milk
    • Sugar

    The list command pairs enclose and define the lists.  The <LI> (list items) comprise the list elements and are formatted according to the command parameters included with in the respective list command tag pairs.  All list item elements are indented.

    Return to Section I:L


    Return to the List of Commands
    Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.
    
    
    
    
    
    Hosted by uCoz