html li tag

In the html <li> tag is used to details a list item for menu list, directory, ordered and unordered and also you can join with inside of <ol>,<ul> and <menu> tag. All main browser supported in <li> tag.

The <li> tag optional attributes are type,value and standard attributes are class, dir, id, lang, style, title, xml:lang and event attributes are onclick, ondblclick, onmousedown, onmousemove,onmouseout ,onmouseover, onmouseup, onkeydown, onkeypress, onkeyup.

Syntax:

<li> ... </li>

Example Code



<ol>
  <li>Javelin Car </li>
  <li>Jetta Car </li>
  <li>Kodiak Car </li>
</ol>

<ul>
  <li>Mirage Car </li>
  <li>Ford Car </li>
  <li>Fox Car </li>
</ul>

<menu>
  <li>Club Wagon Car </li>
  <li>Colorado Car</li>
  <li>Colt Car</li>
</menu>

Out Put:

  1. Javelin Car
  2. Jetta Car
  3. Kodiak Car
  • Mirage Car
  • Ford Car
  • Fox Car
  • Club Wagon Car
  • Colorado Car
  • Colt Car
  • In the above example has been added car list for <ol>,<ul> and <menu> tag.





    Content