Contents

Return to Tags or Functions

cfhtmlhead

Syntax

<cfhtmlhead
	[action="string"]
	[text="string"]
	[variable="string"]>

This tag is also supported within cfscript.

<cfscript>
  htmlhead
	[action="string"]
	[text="string"]
	[variable="string"];
</cfscript>

[] = Optional attribute

Description

Writes the text specified in the text attribute to the 'head' section of a generated HTML page.
The cfhtmlhead tag can be useful for embedding JavaScript code, or placing other HTML tags such, as
META, LINK, TITLE, or BASE in an HTML page header.

Body

This tag can't have a body.

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.

Name Type Required Description
action string No Type of file manipulation that the tag performs.
text string No The text to add to the 'head' area of an HTML page. Everything inside the quotation marks is
placed in the 'head' section
variable string No Name of variable to contain the text for htmlhead.

category Categories: