HOME            MAIN            NEXT            PREV

HTML List Elements Summary


HOME            MAIN            NEXT

DL Element: Description/Glossary List

Usage:                <DL>...</DL>
Can Contain:       DT, DD
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           COMPACT

DL defines glossary-like lists, and can only contains two elements: DT (description term) and DD (the description). 
TOP

<DL>
<DT>
Descriptive term with out descriptive data <BR><BR>
<DT>
First descriptive term
<DD>First descriptive data
<DT>Last descriptive term
<DD>Last descriptive term
</DL>

Descriptive term with out descriptive data

First descriptive term
First descriptive data
Last descriptive term
Last descriptive term


TOP

<DL COMPACT>
<DT>
Descriptive term with out descriptive data <BR><BR>
<DT>
First descriptive term
<DD>First descriptive data
<DT>Last descriptive term
<DD>Last descriptive term
</DL>

Descriptive term with out descriptive data

First descriptive term
First descriptive data
Last descriptive term
Last descriptive term


HOME            MAIN            NEXT            PREV

DT Element: Description Term in a Glossary List

Usage:                <DT>...(</DT>)
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, INPUT, SELECT, TEXTAREA

Can Be Inside:    DL
Attributes:           none

DT contains the term part of a glossary or description list entry. The contents of a DT element should be short: typically, a few words, and certainly shorter than a line.


HOME            MAIN            NEXT            PREV

DD Element: Description in a Glossary List

Usage:                <DD>...(</DD>)
Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                           BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                           DIR, DL, MENU, OL, UL, P, HR,
                           BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE

Can Be Inside:    DL
Attributes:           none

DD gives the description corresponding to the previous DT element or elements. A DD element should follow a DT element and should not occur alone.
See example in DL element.


HOME            MAIN            NEXT            PREV

OL Element: Ordered List

Usage:                <OL>...</OL>
Can Contain:       LI
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           COMPACT, START, TYPE

OL defines an ordered list. Each item in the list is contained within an LI (list item) element. 
TOP

<OL COMPACT START=3 TYPE="A">
<LI>
Ordered list first line. Start with the letter C order
<LI TYPE="i">Ordered list second line. Change type to lowercase Roman order
<LI>Ordered list third line. IE goes back to Capitalized Alphabet order.
Netscape keeps Roman order
<LI TYPE="1">Ordered list fourth line. Change to number
<LI>Ordered list last line. IE goes back to Capitalized Alphabet order. Netscape
keeps Number order
</OL>

  1. Ordered list first line. Start with the letter C order
  2. Ordered list second line. Change type to lowercase Roman order
  3. Ordered list third line. IE goes back to Capitalized Alphabet order. Netscape keeps Roman order
  4. Ordered list fourth line. Change to number
  5. Ordered list last line. IE goes back to Capitalized Alphabet order. Netscape keeps Number order


HOME            MAIN            NEXT            PREV

UL Element: Unordered List

Usage:                <UL>...</UL>
Can Contain:       LI
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           COMPACT, TYPE

UL defines an unordered list. Each item in the list is contained within an LI (list item) element. 
TOP

<UL COMPACT TYPE="circle">
<LI>
Unordered list first line. Start with circle bullet
<LI TYPE=
"disc">Unordered list second line. Change to disc bullet
<LI>Unordered list third line. IE goes back to main UL TYPE="circle" bullet. Netscape keeps disc bullet
<LI TYPE="square">Unordered list last line. Square bullet
</UL>



HOME            MAIN            NEXT            PREV

DIR Element: Directory List

Usage:                <DIR>...</DIR>
Can Contain:       LI
Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
Attributes:           COMPACT

DIR defines a directory list--a list of short items, each usually no more than about 20 characters. If possible, a browser may display the items in columns across the screen, rather than one above the other (most browsers do not do this, however, and format DIR and UL lists identically). Each item in the list is contained within an LI (list item) element. 
TOP

<DIR>
<LI>
Directory first line. Default to disc bullet
<LI TYPE="circle">Directory second line. Change to circle bullet
<LI>Directory third line. IE goes back to default disc bullet. Netscape keeps circle bullet
<LI TYPE="square"=>Directory last line. Square bullet
</DIR>

  • Directory first line. Default to disc bullet
  • Directory second line. Change to circle bullet
  • Directory third line. IE goes back to default disc bullet. Netscape keeps circle bullet
  • Directory last line. Square bullet


  • HOME            MAIN            NEXT            PREV

    MENU Element: Menu List

    Usage:                <MENU>...</MENU>
    Can Contain:       LI
    Can Be Inside:    BLOCKQUOTE, BODY, CENTER, DD, DIV, FORM, LI, TD, TH
    Attributes:           COMPACT

    MENU defines a list of short menu items, each item preferably less than a sentence long. Similar with <UL COMPACT>. Each item in the list is contained within an LI (list item) element. 
    TOP

    <MENU>
    <LI>
    Menu first line. Default to disc bullet
    <LI TYPE="circle">Menu second line. Change to circle bullet
    <LI>Menu third line. IE goes back to default disc bullet. Netscape keeps circle bullet
    <LI TYPE="square">Menu last line. Square bullet
    </MENU>

  • Menu first line. Default to disc bullet
  • Menu second line. Change to circle bullet
  • Menu third line. IE goes back to default disc bullet. Netscape keeps circle bullet
  • Menu last line. Square bullet


  • HOME            MAIN            PREV

    LI Element: List Item

    Usage:                <LI>...(</LI>)
    Can Contain:       characters, character highlighting, A, APPLET, BR, IMG,
                               BASEFONT, MAP, SCRIPT, [ISINDEX], INPUT, SELECT, TEXTAREA,
                               DIR, DL, MENU, OL, UL, P, HR,
                               BLOCKQUOTE, CENTER, DIV, FORM, PRE, TABLE

    Can Be Inside:    DIR, MENU, UL, OL
    Attributes:           TYPE, VALUE

    LI marks a list item within a OL, UL, DIR, or MENU list.
    Hosted by www.Geocities.ws

    1