View comments | RSS feed

cfhtmlhead

Description

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.

Category

Page processing tags

Syntax

<cfhtmlhead 
  text = "text">

See also

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

Attributes

Attribute Req/Opt Default Description
text
Required

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

Usage

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

Example

<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>

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.

Comments


ctina said on Jul 22, 2002 at 2:22 PM :
Update from Macromedia, in response to fusebox_steve: I've entered your idea about an end tag for the HTMLHEAD tag into our enhancements suggestions list.

 

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