Now, we will look at our first tag. This is the header
tag:
<cfif thisTag.ExecutionMode EQ "start"> <div id="header"> <h1 id="siteName">ColdFusion Site</h1> <div id="globalNav"> <a href="#">Home</a> | <a href="#">AboutUs</a> | <a href="#">Shop</a> | <a href="#">Forum</a> | <a href="#">FAQ</a> | <a href="#">Links</a> | <a href="#">Contact Us </a> </div> </div> </cfif>
We could actually just skip the start and end tags, but that would lead to someone using the tag incorrectly. Take a look at the two styles of coding of our new custom tag and you will see the difference. The styles are as follows:
<cf_header>
<cf_header />
Just as in HTML, there are some tags that do not need a closing tag, but there are other tags that do use a closing tag. The modern standards suggest that for HTML, we close all HTML tags. Since we...