TAG:  ul

<ul> ... </ul>
 
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 separate closing tag is mandatory.
 
Attributes and Events
 
class    dir    id    lang    onclick    ondblclick    onkeydown    onkeypress    onkeyup    onmousedown    onmousemove    onmouseout    onmouseover    onmouseup    style    title
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML ul Tag Example</title>
</head>
<body>
Three Major Types Of Lists:
<ul>
<li> Definition List</li>
<ul style="list-style-type: square>
<li> dd tag</li>
<li> dl tag</li>
<li> dt tag</li>
</ul>
<li> Ordered List</li>
<ul style="list-style-type: circle;">
<li> ol tag</li>
<li> li tag</li>
</ul>
<li> Unordered List</li>
<ul style="list-style-type: disc">
<li> ul tag</li>
<li> li tag</li>
</ul>
</ul>
</body>
</html>

 
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