Authoring a dynamic page consists of writing the HTML first,
then adding the server-side scripts or tags to the HTML to make the page dynamic.
When you view the resulting code, the language appears embedded in the page’s
HTML. Accordingly, these languages are known as HTML embedded programming
languages. The following example uses ColdFusion Markup Language (CFML):
<html>
<body>
<b>Call Department</b><br>
<!--- embedded instructions start here --->
<cfset department="Sales">
<cfoutput>
Talk to someone in #department#.
</cfoutput>
<!--- embedded instructions end here --->
</body>
</html>
The embedded instructions on this page perform the following actions:
1. Create a variable called department and assign the string “Sales”
to it.
2. Write the variable’s string value, “Sales”, in the HTML
code.
The application server returns the following page to the web server:
<html>
<body>
<b>Call Department</b><br>
Talk to someone in Sales.
</body>
</html>
The web server sends the page to the requesting browser, which displays it
as follows:
Call Department
Talk to someone in Sales.
![]() |
||||||||
![]() |
||||||||
![]() |
||||||||