TAG:  ul

<ul> ... </ul>
Available in versions: 2.0, 3.2, 4.0
Browser compatibility: Explorer 4, 5  Netscape 4, 6
 
The <ul> tag is used to delimit the start and stop of an unordered list. An unordered list is a collection of items (typically related somehow) that are in no particular order. Each item in the list is preceded by a bullet with the default being a round disc: •
 
Most browsers separate the list from any preceding and following text by paragraph breaks. You can nest unordered lists and each nested list can have a different bullet.
 
You must use the li tag to display an item in the list.
 
You can use the ol tag to create an ordered list and the dl tag to create a definition list. (The dir and menu list tags are deprecated.)
 
The closing tag is mandatory.
 
Core Attributes
 
class    dir    id    lang    onclick    ondblclick    onkeydown    onkeypress    onkeyup    onmousedown    onmousemove    onmouseout    onmouseover    onmouseup    style    title
 
Attributes
 
compact    deprecated 4.0
The compact attribute is used to make an unordered list more compact in appearance. This attribute is poorly implemented. It is deprecated effective with version 4.0.
 
type    deprecated 4.0
The type attribute is used to select the type of bullet that appears before each item in the list. The permitted values are a circle, disc, and square. This attribute is poorly implemented. It is deprecated effective with version 4.0.
 
Code:
Three Major Types Of Lists:
<ul>
<li> Definition List
<ul type="square">
<li> dd tag
<li> dl tag
<li> dt tag
</ul>
<li> Ordered List
<ul type="circle">
<li> ol tag
<li> li tag
</ul>
<li> Unordered List
<ul type="disc">
<li> ul tag
<li> li tag
</ul>
</ul>

 
Output:
Three Major Types Of Lists:
  • Definition List
    • dd tag
    • dl tag
    • dt tag
  • Ordered List
    • ol tag
    • li tag
  • Unordered List
    • ul tag
    • li tag


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information