HTML Hypertext Link Procedures

Table 70. HTML Hypertext Link Procedures

Procedure

Description

html_a

Start of a hypertext link.

Syntax: html_a(string attributes)

  • attributes = HTML attributes inside <A>. At a minimum, define HREF, which specifies the URL of HTML documents.

Common attributes:

href–Where the hypertext link points. (Example: href=home.html)

name–Anchor to which a hypertext link can point. (Example: name=marker1)

Example: Create an anchor with two hypertext links. Position the anchor at the top of the document. Point the first hypertext link to otherdoc.html. Point the second hypertext link to the anchor named TOP.

do html_a('NAME=TOP')
do html_a_end

print 'At the top of document' ()
do html_br(20, '')

do html_a('HREF=otherdoc.html')
print 'Goto other document' ()
do html_a_end

do html_p('')
do html_a('HREF=#TOP')
print 'Goto top of document' ()
do html_a_end

html_a_end

End of a hypertext link.

Syntax: html_a_end