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

cfhtmlhead Attribute Reference

text string
Required

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

Compatibility

Lucee:

Lucee supports ommitting the parenthesis in script syntax

Examples sample code using the cfhtmlhead tag

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

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

Lucee 4.2+

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

Fork me on GitHub