HTML List Procedures

Table 71. HTML List Procedures

Procedure

Description

html_dd

Start of a definition in a definition list.

Syntax: html_dd(string attributes)

  • attributes = HTML attributes inside <DD>

html_dd_end

End of a definition in a definition list. Typically implied; however, can be defined for completeness.

Syntax: html_dd_end

html_dir

Start of a directory list.

Syntax: html_dir(string attributes)

  • attributes = HTML attributes inside <DIR>

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

End of a directory list.

Syntax: html_dir_end

html_dl

Start of a definition list. Terms display above and to the left of definitions. html_dt displays terms. html_dd displays definitions.

Syntax: html_dl(string attributes)

  • attributes = HTML attributes inside <DL>

Example: Definition list with two terms and definitions:

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

End of a definition list.

Syntax: html_dl_end

html_dt

Start of a term in a definition list.

Syntax: html_dt(string attributes)

  • attributes = HTML attributes inside <DT>

html_dt_end

End of a term in a definition list.

Syntax: html_dt_end

html_li

Start of a list item.

Syntax: html_li(string attributes)

  • attributes = HTML attributes inside <LI>

html_li_end

End of a list item. Typically implied; however, can be defined for completeness.

Syntax: html_li_end

html_menu

Start of a menu. html_li identifies menu items.

Syntax: html_menu(string attributes)

  • attributes = HTML attributes inside <MENU>

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

End of a menu.

Syntax: html_menu_end

html_ol

Start of an ordered list. List items typically display indented to the right with a number to the left. html_li identifies list items.

Syntax: html_ol(string attributes)

  • attributes = HTML attributes inside <OL>

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

End of an ordered list.

Syntax: html_ol_end

html_ul

Start of an unordered list. List items typically display indented to the right with a bullet to the left. html_li identifies list items.

Syntax: html_ul(string attributes)

  • attributes = HTML attributes inside <UL>

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

End of an unordered list.

Syntax: html_ul_end