Note: Although this section shows hypertext procedures (HTP), all of them are also available as hypertext functions (HTF).
Syntax | htp.title (ctitle); |
Purpose | Prints an HTML tag with the text you pass in as the value of TITLE. Most Web Browsers display the text value enclosed between <TITLE> and </TITLE> at the top of the document viewing window. |
Parameters | ctitle in varchar2 |
Generates | <TITLE>ctitle</TITLE> |
Syntax | htp.htitle (ctitle, nsize, calign, cnowrap, cclear, cattributes); |
Purpose | Prints the HTML tags for both the title and a top heading using the title you specify. |
Parameters | ctitle in varchar2 nsize in integer DEFAULT 1 calign in varchar2 DEFAULT NULL cnowrap in varchar2 DEFAULT NULL cclear in varchar2 DEFAULT NULL cattributes in varchar2 DEFAULT NULL |
Generates | <TITLE>ctitle</TITLE><Hnsize ALIGN="calign" NOWRAP CLEAR="cclear" cattributes>ctitle</Hnsize> |
Note that htp.htitle produces non-standard HTML. However, most Web Browsers accept it. To produce standard HTML, the <TITLE> tag must be in the HEAD section of the page, and the level heading tag (<H | n>) must be in the BODY section. For example: htp.headOpen; htp.title(...); htp.headClose; htp.bodyOpen; htp.header (1,...)); ... |
Syntax | htp.base; |
Purpose | Prints an HTML tag that records the URL of the document |
Parameters | none |
Generates | Inserts absolute pathname of current document. |
Syntax | htp.isindex (cprompt, curl); |
Purpose | Creates a single entry field with a prompting text, such as "enter value," then sends that value to the URL of the page or program. |
Parameters | cprompt in varchar2 DEFAULT NULL curl in varchar2 DEFAULT NULL |
Generates | <ISINDEX PROMPT="cprompt" HREF="curl"> |
Syntax | htp.linkRel (crel, curl, ctitle); |
Purpose | Prints the HTML tag that gives the relationship described by the hypertext link from the anchor to the target. This is only used when the HREF attribute is present. This tag indicates a relationship between documents, but does not create a link. To do that, use htp.anchor. |
Parameters | crel in varchar2 curl in varchar2 ctitle in varchar2 DEFAULT NULL |
Generates | <LINK REL="crel" HREF="curl" TITLE="ctitle"> |
Syntax | htp.linkRev (crev, curl, ctitle); |
Purpose | Gives the relationship described by the hypertext link from the target to the anchor. This is the opposite of htp.linkRel. This tag indicates a relationship between documents, but does not create a link. To do that, use htp.anchor. |
Parameters | crev in varchar2 curl in varchar2 ctitle in varchar DEFAULT NULL |
Generates | <LINK REV="crev" HREF="curl" TITLE="ctitle"> |
Purpose | htp.meta (chttp_equiv, cname, ccontent); |
Prints an HTML tag that identifies and embeds document meta-information that supplies the Web browser with information about the objects returned in HTTP. | |
Parameters | chttp_equiv in varchar2 cname in varchar2 ccontent in varchar2 |
Generates | <META HTTP-EQUIV="chttp_equiv" NAM ="cname" CONTENT="ccontent"> |
Example | htp.meta ('Refresh', NULL, 120); This line produces: <META HTTP-EQUIV="Refresh" CONTENT=120> |
which on some Web browsers will cause the current URL to be reloaded automatically every 120 seconds. | |