<UL> | NN all IE all HTML all | |
<UL>...</UL> | HTML End Tag: Required | |
The ul element is a container for an unordered list of items. An "unordered list" means that the items are rendered with a leading symbol (depending on the type attribute setting or list-style-type style sheet attribute setting) that implies no specific order of items other than by virtue of location within the list. Content for each list item is defined by a nested li element. If you apply a style sheet rule to a ul element, the style is inherited by the nested li elements (except for occasional odd behavior in Navigator 4 only). |
||
Example | ||
<UL> <LI>Africa</LI> <LI>Antarctica</LI> <LI>Asia</LI> <LI>Australia</LI> <LI>Europe</LI> <LI>North America</LI> <LI>South America</LI> </UL> |
||
Object Model Reference | ||
[window.]document.getElementById(elementID)
|
||
Element-Specific Attributes | ||
|
||
Element-Specific Event Handler Attributes | ||
None. |
compact | NN 6 IE 4 HTML 3.2 |
compact | Optional |
A Boolean attribute originally designed to let browsers render the list in a more compact style than normal (smaller line spacing between items). Although listed as a supported attribute for HTML compatibility, the compact attribute has no effect on mainstream browsers. Use style sheets to control element sizes and line spacing. |
|
Example | |
<UL compact>...</UL> |
|
Value | |
The presence of this attribute makes its value true. |
|
Default | |
false |
lang | NN 3 IE 4 HTML 4 |
lang="languageCode" | Optional |
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices. |
|
Example | |
<SPAN lang="de">Deutsche Bundesbahn</SPAN> |
|
Value | |
Case-insensitive language code. |
|
Default | |
Browser default. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).lang
|
type | NN all IE all HTML 3.2 |
type="labelType" | Optional |
The type attribute provides some flexibility in how the leading symbol or sequence number is displayed in the browser. You can specify whether the leading symbol should be a disc, circle, or square. A disc is a filled circle (also known as a bullet). The square type is rendered as an outline in early Macintosh browsers, and as a filled square in Windows and modern browsers of all OS types. The type attribute is deprecated in HTML 4 in favor of the list-style-type style sheet attribute. |
|
Example | |
<UL type="disc">...</UL> |
|
Value | |
Possible values are circle | disc | square. |
|
Default | |
disc |
|
Object Model Reference | |
[window.]document.getElementById(elementID).type
|