Writes text to the head section of a generated HTML page.
<cfhtmlhead
text = "text">
cfcache, cfflush, cfheader, cfinclude, cfsetting, cfsilent
|
Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
|
text |
Required |
|
Text to add to the <head> area of an HTML page. |
Use this tag for embedding JavaScript code, or putting other HTML tags, such as meta, link, title, or base in an HTML page header.
If you use this tag after the cfflush tag on a page, an error is thrown.
<!--- This example adds a favicon to the HTML
Head of every page view. The extra CRLF at
the end cleans up view source. Note the
embedded tag uses double quotes and the cfhtmlhead
text attribute uses single quotes,
but it could be the other way around too.
--->
<cfhtmlhead
text='<link href="/blog/custom/img/favicon.ico" rel="shortcut icon" type="image/x-icon">#chr(13)##chr(10)#'>