html Ul Tag

In the html <ul> tag is used to specify an unordered list or un-numbered or bullet list and you can use <li> tag inside of <ul> tag. The <li> tag define a list item. You can use to alternative of <menu>,<ol> and <dir> tag for list item.

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

Syntax:

<ul> --- </ul>

Example Code

<ul>
  <li> Unordered List 1 </li>
  <li> Unordered List 2 </li>
  <li> Unordered List 3 </li>
</ul>

Out Put:



  • Unordered List 1
  • Unordered List 2
  • Unordered List 3

In the above example <ul> tag has been added to Unordered List 1,Unordered List 2 and Unordered List 3.





Content