• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2.  Overview of CFML  >  Using ColdFusion MX Tags

Using ColdFusion MX Tags

Tags are the main building blocks of CFML and enable you to perform various tasks, such as data manipulation and output display. Before we go into the specific details of CFML tags, you need to understand how a Web browser processes these tags. Conventionally, CFML files have the .cfm extension. It’s possible to have an extension other than .cfm, provided you configure the Web server to associate the new extension with the ColdFusion engine. Another extension is .cfc, for ColdFusion components. When a Web browser requests a .cfm file, the ColdFusion application server first interprets all the CFML tags. After the tags are interpreted, the ColdFusion server returns an HTML document to the Web server, which is then displayed in the browser window. CFML tags are processed sequentially until the end of the file is reached; non-CFML tags are ignored during the processing.

Each CFML tag has a start tag and an end tag, <CFTagName> and </CFTagName>, respectively. Note that the end tag is identified by a slash (/). CFML tags accept one or more attributes, which allow you to pass values to the tag for processing. For example, the <CFMAIL> tag uses attributes in the following manner:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint