Folks:

I have some questions concerning the correct usage of single versus
double-quotes.

First, I need to know if CF or HTML cares if attributes are single-quoted or
double quoted?

It appears:
<cfparam name="myVar" default="123">

works the same as:
<cfparam name='myVar' default='123'>

and:
<a href="myPage.cfm">

works the same as:
<a href='myPage.cfm'>

Is there a preferred method?

What about:
<cfparam name='myOtherVar' default='The car made a loud "bang!" sound.'>

and:
<cfparam name="myOtherVar" default="The car made a loud ""bang!"" sound.">

Is there a "correct" way to code quoted strings?

Any insight would be _greatly_ appreciated!

Thanks!

Christian N. Abad
ColdFusion Web Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to