cfhtmlhead

Writes text to the head section of a generated HTML page. It is useful for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header.

Page processing tags

<cfhtmlhead 
text = "text">

cfcache, cfflush, cfheader, cfheader, cfinclude, cfsetting, cfsilent

Attribute Req/Opt Default Description

text

Required

 

Text to add to the <head> area of an HTML page.

If you use this tag after the cfflush tag on a page, an error is thrown.

<body>
<!--- This example shows the use of cfhtmlhead --->
<cfhtmlhead 
   text="<meta name=""Description"" 
   content=""This is an example of a generated header"">"> 

<p>cfhtmlhead writes the text specified in the text attribute to the 
&lt;HEAD&gt;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 header. <p>View the source of this frame to see that the title of the page is
generated by the cfhtmlhead tag. </body>

View comments on LiveDocs