I was looking at the sourcecode of google.com (the web-rendered version ofc. ;-)) and I noticed that they don’t always use double quotes around the values of some HTML attributes, like:
<a onclick=gbar.qs(this) class=gbmt id=gb_10 href="http://books.google.com/bkshp?hl=en&tab=wp&authuser=0" onclick="gbar.logger.il(1,{t:10})">Books</a>
What’s the advantage of coding your site like this?
source: http://www.google.com
Because HTML doesn’t care. Quotes are not required. In the case of a boolean attribute, it doesn’t even need a value either at times (ex.
disabledvs.disabled="disabled"). Only XML (and XHTML served with an XML mimetype) cares about syntax in this way because XML spec defines these are required.