3-1-Tags:CFHtmlhead

last edited byusericonlmajano on 23-Aug-2009

Contents

cfhtmlhead

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.

Category

Other

Implemented

Usage Syntax

<cfhtmlhead  text="String"/>

[] = Optional attribute

Attributes

Name Type Required Default Description
text String Yes The text to add to the 'head' area of an HTML page. Everything inside the quotation marks is placed in the 'head' section

Example Usage

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word

comments Comments (1)

You need to login in order to comment!

paul@ongevraagdadvies.nl's Gravatar

url Paul Klinkenberg said

at 11:49:24 PM 12-Jul-2010

As you can read here: https://jira.jboss.org/browse/RAILO-626 , there are numerous extra options within Railo for this tag :-) <!--- read data in html head ----> <cfhtmlhead action="read" variable="text" /> <!--- reset data defined for html head ----> <cfhtmlhead action="reset" /> <!--- append data to html head (action attribute is optional in this case) ---> <cfhtmlhead action="append" text="susi" /> <!--- write data to html head (overwrite existing data) ---> <cfhtmlhead action="write" text="susi" />