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.
<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 <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 header. <p>View the source of this frame to see that the title of the page is generated by the cfhtmlhead tag. </body>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt153.htm
Comments
ctina said on Jul 22, 2002 at 2:22 PM :