![]() ![]() ![]() |
||
|
Creating a ColdFusion page involves using tags and functions. The best way to understand this process is to create a ColdFusion page.
In the following procedure, you will create a simple ColdFusion page by using HTML tags, one ColdFusion tag, and two ColdFusion functions. The following table briefly explains the ColdFusion tags and functions:
Element |
Description |
---|---|
Now() |
A function supported in CFML that you can use to retrieve information from your system. You will use the |
DateFormat() |
A function that instructs ColdFusion to format the date returned by the |
cfoutput |
A ColdFusion tag that you use to return dynamic data (data retrieved from a database) to a web page. You will use the |
Note: ColdFusion tags and functions are considered primary elements of CFML. You will learn more about these elements and others later in this manual.
<html> <head> <title>A ColdFusion Page</title> </head> <body> <strong>Hello world, this is a ColdFusion page.</strong> <br> <cfoutput> Todays date is #DateFormat(Now())# </cfoutput> </body> </html>
|
||
![]() ![]() ![]() |