I was told that it's better to use double quotes around tag attributes because they're standard xhtml. When I validate my code (in which i only use single quotes) on the w3c validator, it tells me that it's valid xhtml.
Is it true that single quotes for attributes are not standard xhtml?
if so, can you post a url that confirms it?
Single quotes xhtml...
Moderator: General Moderators
Both the 3rd edition of XML1.0 and XML1.1 recommendations allow single quotes to be used arond attribute values.
http://www.w3.org/TR/2004/REC-xml-20040204/#NT-AttValue
http://www.w3.org/TR/2004/REC-xml11-200 ... T-AttValue
Since the XHTML is just a dialect of XML it should allow it as well.
http://www.w3.org/TR/2004/REC-xml-20040204/#NT-AttValue
http://www.w3.org/TR/2004/REC-xml11-200 ... T-AttValue
Since the XHTML is just a dialect of XML it should allow it as well.