Monday, July 16, 2012
single quote versus backslash double quote
In HTML code behind, we tend to use single quotes to indicate the ID of an html object. But the best practice that we need to know is to always use backslash double quote. This is being parsed by all kinds of browsers (even IE 6 or other lower versions of browsers). The single quotes are only read by new browsers so we might be confused why our code has browser compatibility issues.
Sharing is caring!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment