Start of a hypertext link. Syntax: html_a(string attributes) 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 |