List tags
HTML Lists are used to organize information in well–formed and sematic way on a Web page. All lists may contain one or more lists elements. There are three different types of list in HTML.
§ Ordered list – groups a set of related items, in a specific order. Each item is preceded with a letter or number. (default – decimal numbers)
§ Unordered list – groups a set of related items, in no particular order. Each item is preceded with a bullet symbol (default – disc).
§ Description list – used to display a list of terms and their descriptions.
§ Menu list – typically short list of items arranged in a single column and rendered as a bulleted list. (No sub lists)
|
Tags |
Attributes |
Function |
|
<OL> |
3 |
Defines an ordered list |
|
<UL> |
2 |
Defines an unordered list |
|
<DL> |
1 |
Defines a description list |
|
<LI> |
4 |
Defines a list item |
|
<DT> |
0 |
Defines a term in a description list |
|
<DD> |
0 |
Describes the term in a description list |
|
<DIR> |
1 |
Used to list directory titles (deprecated) |
|
<MENU> |
1 |
Defines a list/menu of commands (deprecated) |
(Note: all list tags are container tags)
Tag: <OL>
|
Attribute |
Description and values |
|
COMPACT |
Instructs the browser to render the list item in as small a space as possible |
|
START |
Sets the starting value of sequence. Else default is 1 |
|
TYPE |
Decimal Numbers(1, 2, …), Alphabets (A, B, … / a, b, …) Roman Numerals (I, II, … / I, ii, …) |
Tag: <UL>
|
Attribute |
Description and values |
|
COMPACT |
Instructs the browser to render the list item in as small a space as possible |
|
TYPE |
Bullet character to use – DISC | SQUARE | CIRCLE |
Tag: <OL>, <UL> and <LI>
|
Attribute |
Description and values |
|
COMPACT |
Instructs the browser to render the list item in as small a space as possible |
|
START |
For ordered list only. Sets the starting value of sequence. Else default is 1 |
|
TYPE |
§ Ordered List – 1 | A | a | I | i § Unordered List – DISC | CIRCLE | SQUARE |
|
VALUE |
Sets the numbering value of the list item |
Tag: <DL>, <DIR>, <MENU>
|
Attribute |
Description and values |
|
COMPACT |
Instructs the browser to render the list item in as small a space as possible |
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu