Quackit Logo

HTML ul Tag

 

The HTML ul tag is used for specifying an unordered list (or un-numbered list).

Also see HTML ol tag for ordered (numbered) lists.

Example
<ul>
<li>ul - unordered list</li>
<li>ol - ordered list</li>
<li>dir - directory list (deprecated)</li>
<li>menu - menu list (deprecated)</li>
</ul>
Attributes:
Attributes specific to this tag:
typeSpecifies the style of the bullet. Possible values:
  • disc
  • circle
  • square
Note: This attribute is deprecated. Use CSS list-style-type instead.
compactRenders the list in a more compact way.

Note:This attribute is deprecated. Use CSS instead.

Other Attributes:
AttributeDescription
dirSpecifies the direction of the text
classDocument wide identifier.
idDocument wide identifier
langLanguage code
titleSpecifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
styleInline style (CSS)
onclickIntrinsic event (see event handlers)
ondbclickIntrinsic event (see event handlers)
onmousedownIntrinsic event (see event handlers)
onmouseupIntrinsic event (see event handlers)
onmouseoverIntrinsic event (see event handlers)
onmousemoveIntrinsic event (see event handlers)
onmouseoutIntrinsic event (see event handlers)
onkeypressIntrinsic event (see event handlers)
onkeydownIntrinsic event (see event handlers)
onkeyupIntrinsic event (see event handlers)
Try it yourself! HTML Editor


Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!