HTML - tags - <li>

#76 of 147
li

 <html>
 <body>
     <p>The planets:</p>
     <ul>
         <li>Mercury</li>
         <li>Venus</li>
         <li>Earth</li>
         <li>Mars</li>
         <li>Jupiter</li>
         <li>Saturn</li>
         <li>Uranus</li>
         <li>Neptune</li>
         <li><del>Pluto</del></li>
     </ul>
 </body>
 </html>
 

The li element represents an item in an ordered list (ol), or an unordered list (ul).

A live example:


The planets:

  1. Mercury
  2. Venus
  3. Earth
  4. Mars
  5. Jupiter
  6. Saturn
  7. Uranus
  8. Neptune
  9. Pluto

N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath