The following figure shows the cfpage.cfm in the browser:
Do the following tasks:
2
View the source code that was returned to the browser. In most browsers, you can view the
a
source by right-clicking on page then selecting View Source.
Compare the browser source code with the source code that appears in your editor. Notice
b
that the CFML tags were processed on the page but did not appear in the source that was
returned to your browser.
As described in
processes all the instructions (CFML tags and functions) it receives on a page, and then
returns the results of the instructions that your browser can interpret and display.
Understanding CFML elements
CFML consists of two primary language elements: tags and functions. Tags let you perform
operations such as accessing a database. Functions can return data and do other operations like
retrieving the system date. Almost everything you want to accomplish with ColdFusion will
involve using tags and functions.
You will use another important element known as a variable. Variables are an important part of
most programming languages and are equally important with CFML. Variables let you store
information in memory and enable you to pass data.
The following sections describe how to use these three elements.
Tags
You can think of tags as commands that you use to instruct the ColdFusion server to perform
operations. These operations might include selecting data from a database, reading a file that
resides on the server, or showing the results of processing.
Tag syntax
As discussed in
Chapter 1, "Introducing ColdFusion MX," on page
similar to HTML tags. ColdFusion tags are enclosed in angle brackets and often have a start and
end tag. The start tag encloses the tag name in brackets, like this:
<tagname>
18
Chapter 2: CFML Basics
Chapter 1, "Introducing ColdFusion MX," on page
11, ColdFusion
11, ColdFusion tags are
Need help?
Do you have a question about the COLDFUSION MX 61-GETTING STARTED BUILDING COLDFUSION MX and is the answer not in the manual?
Questions and answers