cfhtmlhead

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

 cfhtmlhead(text="");

Attribute Reference for the cfhtmlhead tag

text

Required: Yes
Text to add to the head area of an HTML page.

Examples sample code using the cfhtmlhead tag


Add RSS feed link to the HTML head section

<cfhtmlhead text='<link href="/news.xml" rel="alternate" type="application/rss+xml" title="Latest News" />'>

Using script

cfhtmlhead( text='<link href="/news.xml" rel="alternate" type="application/rss+xml" title="Latest News" />');

Lucee only: script alternative

htmlhead text='<link href="/news.xml" rel="alternate" type="application/rss+xml" title="Latest News" />';

Fork me on GitHub