Possible Duplicate:
When to Use Double or Single Quotes in JavaScript
Are single quotes valid in HTML/XHTML?
In the world of XHTML, HTML, Javascript etc. does it matter if you use ' or " when writing code as long as you stick to one or the other? And is it better to use one over the other and why?
being XML, XHTML will only take the double quote. HTML being SGML can take either. JavaScript, though, doesn’t care as long as you are consistent withing a single string (that is opening and closing with the same character).