Note: Although this section shows hypertext procedures (HTP), all of them are also available as hypertext functions (HTF).
Syntax | htp.line (cclear, csrc, cattributes); |
Purpose | Prints the HTML tag that generates a line in the HTML document. csrc enables you to specify a custom image as the source of the line. |
Parameters | cclear in varchar2 DEFAULT NULL csrc in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <HR CLEAR="cclear" CSRC="csrc" cattributes> |
Syntax | htp.nl (cclear, cattributes); |
Purpose | Prints the HTML tag that inserts a new line |
Parameters | cclear in varchar2 DEFAULT NULL, cattributes in varchar2 DEFAULT NULL, |
Generates | <BR CLEAR="cclear" cattributes> |
Syntax | htp.header (nsize, cheader, calign, cclear, cattributes); |
Purpose | Prints the HTML tag for a heading level, with the value of the heading level assigned in the nsize parameter. Valid levels are 1 through 6. |
Parameters | nsize in integer cheader in varchar2 calign in varchar2 DEFAULT NULL cnowrap in varchar2 DEFAULT NULL cclear in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <Hnsize ALIGN="calign" NOWRAP CLEAR="cclear" cattributes>cheader</Hnsize> |
Example | htp.header (1,'Overview'); produces <H1>Overview</H1> |
Syntax | htp.anchor (curl, ctext, cname, cattributes); |
Purpose | Prints the HTML tag for an anchor to be the start or end destination of a hypertext link. This anchor can accept several attributes, but either HREF or NAME is required. HREF specifies where to link to. NAME allows this tag to be a target of a hypertext link. |
Parameters | curl in varchar2 ctext in varchar2 cname in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <A HREF="curl" NAME="cname" cattributes>ctext</A> |
Syntax | htp.mailto (caddress, ctext, cname, cattributes); |
Purpose | Prints the HTML tag for an anchor with 'mailto' concatenated ahead of the mail address argument. |
Parameters | caddresss in varchar2 ctext in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <A HREF="mailto:caddress" cattributes>ctext</A> |
Example | htp.mailto('pres@white_house.gov','Send Email to the President'); prints <A HREF="mailto:pres@white_house.gov">Send Email to the President</A> |
Syntax | htp.img (curl, calign, calt, cismap, cattributes); |
Purpose | Prints an HTML tag that signals the browser to load an image to be placed into the HTML page. ALT allows you to specify alternate text to be shown while the image is being loaded, or instead of the image if the browser does not support images. The ISMAP attribute indicates that the image is an image map. |
Parameters | curl in varchar2 DEFAULT NULL calign in varchar2 DEFAULT NULL calt in varchar2 DEFAULT NULL cismap in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <IMG SRC="curl" ALIGN="calign" ALT="calt" ISMAP cattributes> |
Syntax | htp.para; |
Purpose | Prints an HTML tag that indicates that the text previous to it should be formatted as a paragraph. |
Parameters | none |
Generates | <P> |
Syntax | htp.paragraph (calign, cnowrap, cclear, cattributes); |
Purpose | Prints the same HTML tag as htp.para except that parameters pass in exact alignment, leading, wrapping , and attributes. |
Parameters | calign in varchar2 DEFAULT NULL cnowrap in varchar2 DEFAULT NULL cclear in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <P ALIGN="calign" NOWRAP CLEAR="cclear" cattributes> |
Syntax | htp.address (cvalue, cnowrap, cclear, cattributes); |
Purpose | Prints an HTML tag that enables you to specify address, author and signature of document |
Parameters | cvalue in varchar2 cnowrap in varchar2 DEFAULT NULL cclear in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <ADDRESS CLEAR="cclear" NOWRAP cattributes>cvalue</ADDRESS> |
Syntax | htp.comment (ctext); |
Purpose | Prints an HTML tag that allows you to store comments or lines in HTML pages. These comments are not visible to the end user. |
Parameters | ctext in varchar2 |
Generates | <!-- ctext --> |
Syntax | htp.preOpen (cclear, cwidth, cattributes); |
Purpose | Prints an HTML tag that indicates the beginning of preformatted text in the body of the HTML page. |
Parameters | cclear in varchar2 DEFAULT NULL cwidth in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
<PRE CLEAR="cclear" WIDTH="cwidth" cattributes> | |
Syntax | htp.preClose; |
Purpose | Prints an HTML tag that ends the preformatted section of text. |
Parameters | none |
Generates | </PRE> |
Syntax | htp.blockquoteOpen (cnowrap, cclear, cattributes); |
Purpose | Prints an HTML tag that precedes a paragraph of quoted text. |
Parameters | cnowrap in varchar2 DEFAULT NULL cclear in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL; |
Generates | <BLOCKQUOTE CLEAR="cclear" NOWRAP cattributes> |
Syntax | htp.blockquoteClose; |
Purpose | Ends the <BLOCKQUOTE> section of quoted text. |
Parameters | none |
Generates | </BLOCKQUOTE> |