HTML List Procedures

The following table describes HTML list procedures:

Procedure

Description

html_dd

Marks the start of a definition in a definition list by using the HTML <DD> tag.

Syntax:

html_dd(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <DD> tag.

html_dd_end

Marks the end of a definition in a definition list by using the HTML </DD> tag. The end of a definition in a definition list is typically implied and not needed; however, specifying it for completeness is a good practice.

Syntax:

html_dd_end 

html_dir

Marks the start of a directory list by using the HTML <DIR> tag.

Syntax:

html_dir(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <DIR> tag.

Example:

do html_dir('')
do html_li('')
print 'First item' ()
do html_li('')
print 'Second item' ()
do html_li('')
print 'Last item' ()
do html_dir_end

html_dir_end

Marks the end of a directory list by using the HTML </DIR> tag.

Syntax:

html_dir_end

html_dl

Marks the start of a definition list by using the HTML <DL> tag. A definition list displays a list of terms and definitions. The term appears before and to the left of the definition. Use the html_dt procedure to display a term. Use the html_dd procedure to display a definition.

Syntax:

html_dl(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <DL> tag.

Example:

do html_dl('')
do html_dt('')
print 'A Daisy' ()
do html_dd('')
print 'A sweet and innocent flower.' ()
do html_dt('')
print 'A Rose' ()
do html_dd('')
print 'A very passionate flower.' ()
do html_dl_end

html_dl_end

Marks the end of a definition list by using the HTML </DL> tag.

Syntax:

html_dl_end

html_dt

Marks the start of a term in a definition list by using the HTML <DT> tag.

Syntax:

html_dt(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <DT> tag.

html_dt_end

Marks the end of a term in a definition list by using the HTML </DT> tag.

Syntax:

html_dt_end 

html_li

Marks the start of a list item by using the HTML <LI> tag.

Syntax:

html_li(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <LI> tag.

html_li_end

Marks the end of a list item by using the HTML </LI> tag. The end of a list item is typically implied and not needed; however, you should specify it for completeness.

Syntax:

html_li_end 

html_menu

Marks the start of a menu by using the HTML <MENU> tag. Use the html_li procedure to identify each item in a list.

Syntax:

html_menu(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <MENU> tag.

Example:

do html_menu('')
do html_li('')
print 'First item' ()
do html_li('')
print 'Second item' ()
do html_li('')
print 'Last item' ()
do html_menu_end

html_menu_end

Marks the end of a menu by using the HTML </MENU> tag.

Syntax:

html_menu_end

html_ol

Marks the start of an ordered list by using the HTML <OL> tag. Each item in the list typically appears indented to the right with a number to the left. Use the html_li procedure to identify each item in a list.

Syntax:

html_ol(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <OL> tag.

Example:

do html_ol('')
do html_li('')
print 'First item' ()
do html_li('')
print 'Second item' ()
do html_li('')
print 'Last item' ()
do html_ol_end

html_ol_end

Marks the end of an ordered list by using the HTML </OL> tag.

Syntax:

html_ol_end

html_ul

Marks the start of an unordered list by using the HTML <UL> tag. Each item in the list typically appears indented to the right with a bullet to the left. Use the html_li procedure to identify each item in a list.

Syntax:

html_ul(string attributes)

Attributes: Defines the HTML attributes that are incorporated inside the HTML <UL> tag.

Example:

do html_ul('')
do html_li('')
print 'First item' ()
do html_li('')
print 'Second item' ()
do html_li('')
print 'Last item' ()
do html_ul_end

html_ul_end

Marks the end of an unordered list by using the HTML </UL> tag.

Syntax:

html_ul_end