CFHTMLHEAD

CFHTMLHEAD writes the text specified in the TEXT attribute to the <HEAD> section of a generated HTML page. CFHTMLHEAD can be useful for embedding JavaScript code, or placing other HTML tags such as META, LINK, TITLE, or BASE in an HTML page header.

Syntax

<CFHTMLHEAD TEXT="text">
TEXT

The text you want to add to the <HEAD> area of an HTML page. Everything inside the quotation marks is placed in the <HEAD> section.

Example

cfhtmlhead

 <!--- This example shows the use of CFHTMLHEAD ---> <CFHTMLHEAD TEXT="<TITLE>This is an example of a generated header</TITLE> <BASE HREF='http://www.allaire.com/'> "> <HTML> <HEAD> </HEAD> <BODY> <H3>CFHTMLHEAD Example</H3> <P>CFHTMLHEAD writes the text specified in the TEXT attribute to the &lt;HEAD&gt; ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.