Back
imageTag()
1. Outputs an `img` tag for `public/images/logo.png`
#imageTag("logo.png")#
2. Outputs an `img` tag for `http://cfwheels.org/images/logo.png`
#imageTag(source="http://cfwheels.org/images/logo.png", alt="ColdFusion on Wheels")#
3. Outputs an `img` tag with the `class` attribute set
#imageTag(source="logo.png", class="logo")#
4. With explicit host and protocol
#imageTag(source="logo.png", onlyPath=false, host="cdn.myapp.com", protocol="https")#
Copied!