CFML Tags

CFML tags are similar to XHTML elements in that

  • They can occur as standalone tags or in an opening tag/closing tag pair.

  • They have attributes that modify the effect of the tag.

One thing common to all CFML tags is that the keyword for each tag always begins with the letters CF. This is especially important to remember because some CFML tags, such as <CFFORM> and <CFTABLE>, would be reduced to regular XHTML tags if you left the CF off the keywords.

The next several sections examine many of the useful tags that make up CFML, including

  • Assigning values to ColdFusion variables with <CFSET> and printing their values with <CFOUTPUT>

  • Querying, inserting, updating, and deleting records in a database using <CFQUERY>

  • Implementing conditional logic ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.