cftable
Builds a table in a CFML page. This tag renders data as preformatted text, or, with the HTMLTable attribute, in an HTML table. If you do not want to write HTML table tag code, or if your data can be presented as preformatted text, use this tag. Preformatted text (defined in HTML with the <pre> and </pre> tags) displays text in a fixed-width font. It displays white space and line breaks exactly as they are written within the pre tags. For more information, see an HTML reference guide. To define table column and row characteristics, use the cfcol tag within this tag.
<cftable query="">
cftable(query="");
The cftable tag was REMOVED from ColdFusion 2025 and has been DEPRECATED since ColdFusion 2016
Discouraged: The use of tags that generate client side UI code is generally discouraged by the CFML community. See: http://static.raymondcamden.com/cfuitherightway/cftable/index.html
Attribute Reference
query query Required
maxrows numeric
colSpacing numeric
headerLines numeric
htmltable any
border any
colheaders any
startrow numeric
Compatibility
ColdFusion:
Links more information about cftable
- ColdFusion UI The Right Way: CFTable - Shows how to implement it using HTML
Examples Sample code using the cftable tag
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/cftable