Search the web...

 

Google

 
Home Feedback About me
Few programming language tutorials
Source codes
Network security
Technology news
Space updates
Jokes
 
select a category to access the tutorials
| HTML | CSS | JAVASCRIPT |

Lists Tags


This document describes tags used to design and implement interactive forms on a web page.
This table:
Support:  HTML:2.0, 3.0, 3.2  Netscape:1.1+  MS Explorer:1.0+

and these icons:

(HTML 3.0 Only) (HTML 3.2 Only) (Netscape Extension) (Microsoft Extension) (Microsoft Extension 3.0)

alert you to tags and attributes that are not supported by all browsers.
 


Definition List

<DL> list entries </DL>
<DL COMPACT>
list entries </DL>
<DT>
term
<DD> definition

The definition list tag introduces a definition list or glossary, which is made up of term (DT) and definition (DD) items. The </DT> and </DD> tags are optional. Typically the definitions are indented under each term, with no blank lines around them. If COMPACT was specified (and the terms are short) the terms and definitions are on the same line. Do not use multiple DD elements for the same DT -- instead use BR within the DD.

(HTML 3.0 Only) A list heading (LH) may be included before the first definition term.

 

Directory List

<DIR> list entries </DIR>
(HTML 3.2 Only) <DIR COMPACT> list entries </DIR>

The directory list tag introduces a directory list, which is made up of List Item (LI) tags and does not include bullets or numbers before them. The items should be short so that they can be arranged into columns. For a bulleted list use UL. For a numbered list use OL. For a list without bullets or numbers that is not arranged into columns use MENU. The COMPACT attribute instructs the browser to reduce the space occupied by the list.

In HTML 3.0, the same effect can be achieved with <UL PLAIN WRAP=HORIZ>. The DIR tag will probably be obsolete some day, so use UL.

List Item

<LI> text </LI>
(HTML 3.0 Only) <LI SRC=
URL> text </LI>
(HTML 3.0 Only) <LI DINGBAT=
"entity-name"> text </LI>
(HTML 3.0 Only) <LI SKIP=
number> text </LI>
(HTML 3.2 Only) <LI TYPE=type> text </LI>
(HTML 3.2 Only) <LI VALUE=number> text </LI>

The list item tag defines one entry in an ordered, unordered, menu, or directory list. Other tags may be embedded in a list item.

(HTML 3.0 Only)The SRC attribute uses the image specified by the URL as the bullet for this item. The DINGBAT attribute identifies an iconic entity for the bullet. The SKIP attribute is used with ordered lists to skip forward in the count.

(HTML 3.2 Only) The TYPE attribute changes the bullet or numbering style for this item. type has the same values as it would in the OL or UL tag. The VALUE attribute resets the sequence number to number.

 

Menu List

<MENU> list entries </MENU>
(HTML 3.2 Only) <MENU COMPACT> list entries </MENU>

The menu list tag introduces a menu list, which is made up of List Item (LI) tags and does not include bullets or numbers before them. For a bulleted list use UL. For a numbered list use OL. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR. The COMPACT attribute instructs the browser to reduce the space occupied by the list.

In HTML 3.0, the same effect can be achieved with <UL PLAIN>. The MENU tag will probably be obsolete some day, so use UL.

 

Ordered List

<OL> list entries </OL>
(HTML 3.2 Only) <OL COMPACT> list entries </OL>
(HTML 3.0 Only) <OL SEQNUM=
number> list entries </OL>
(HTML 3.0 Only) <OL CONTINUE>
list entries </OL>
(HTML 3.2 Only) <OL START=number> list entries </OL>
(HTML 3.2 Only) <OL TYPE=type> list entries </OL>

The ordered list tag introduces an ordered (numbered) list, which is made up of List Item (LI) tags. The COMPACT attribute instructs the browser to reduce the space occupied by the list. For a bulleted list use UL. For a list without bullets or numbers use MENU. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR.

(HTML 3.0 Only) A list heading (LH) may be included before the first list item. The SEQNUM attribute allows the first list item to be number instead of the default 1. The CONTINUE attribute continues the numbering from the previous ordered list.

(HTML 3.2 Only) The START attribute allows the first list item to be number instead of the default 1. The TYPE attribute governs the way items are numbered:

A
A, B, C...
a
a, b, c...
I
I, II, III...
i
i, ii, iii...
1
1, 2, 3...

Unordered List

<UL> list entries </UL>
<UL COMPACT>
list entries </UL>
(HTML 3.0 Only) <UL SRC=
"URL" > list entries </UL>
(HTML 3.0 Only) <UL DINGBAT=
"entity-name" > list entries </UL>
(HTML 3.0 Only) <UL PLAIN>
(HTML 3.0 Only) <UL WRAP=
type>
(HTML 3.2 Only) <UL TYPE=type > list entries </UL>

The unordered list tag introduces an unordered (bulleted) list, which is made up of List Item (LI) tags. The COMPACT attribute instructs the browser to reduce the space occupied by the list. For a numbered list use OL. For a list without bullets or numbers use MENU. For a list without bullets or numbers made up of short items that can be arranged into columns use DIR.

(HTML 3.0 Only) A list heading (LH) may be included before the first list item. The SRC attribute identifies a graphic image to be used as a bullet, while the DINGBAT attribute identifies an iconic entity for the bullet. The PLAIN attribute specifies not to use a bullet on each item. The WRAP attribute is either VERT or HORIZ, and indicates multiple columns of data. VERT indicates that the data is to go down the page and then wrap to the next column, and HORIZ indicates that the data is to wrap across each row.

(HTML 3.2 Only) The TYPE attribute specifies the bullet type; type can be DISC, CIRCLE, or SQUARE.
 

Tables tags | Lists tags | Old HTML tags | Top level tags | Character formatting tags | Block formatting tags | Misc Tags

TOP

HTML  |  CSS  |  JAVASCRIPT
 
Internet Super Search

Bravenet Web Services

 

Host your web sites here with no cost. Register your free web space now!!!