The <li> element defines a list item within a list. The li element is used with the ol or ul list tags.
The following is a default order list tag.
  1. Put on underwear.
  2. Pull over shirt.
  3. Pull up trowsers.
  4. Put on socks.
  5. Put on shoes.
                     
        The following is a default order list tag.
        <ol>
            <li>Put on underwear.</li>
            <li>Pull over shirt.</li>
            <li>Pull up trowsers.</li>
            <li>Put on socks.</li>
            <li>Put on shoes.</li>
        </ol>
    
                   
The following is a default unordered list tag.
  • Life
  • Liberty
  • Pursuit of Happiness
                     
        The following is a default unordered list tag.
        <ul>
            <li>Life</li>
            <li>Liberty</li>
            <li>Pursuit of Happiness</li>
        </ul>
    
                   
The following is a default style of definition list. Defining Mesozoic era of earth history (dinosaurs).
Triassic
245 to 208 million years ago.
Jurassic
208 to 144 million years ago.
Cretaceous
144 to 65 million years ago.
                     
        The following is a default style of definition list. Defining
        Mesozoic era of earth history (dinosaurs).
        <dl>
            <dt/>
            <dt>Triassic</dt>
            <dd>245 to 208 million years ago.</dd>
            <dt>Jurassic</dt>
            <dd>208 to 144 million years ago.</dd>
            <dt>Cretaceous</dt>
            <dd>144 to 65 million years ago.</dd>
        </dl>