When can attribute value be left without quotes in HTML5?
HTML4.01 is an SGML application. Thus, in HTML4, quotation marks can be omitted if the only characters used in the value are those that are currently declared as name characters: alphanumeric character, full stop, -,:, _.
Well, from the W3C working draft (January 13, 2011):
An attribute value can remain unquoted if it does not contain spaces or any of "'' = <or>.
But if I put any other character except an alphanumeric character in the attribute value, a complete stop, -,:, _ and staying in it without quotes validator.w3.org does not confirm my html document as a valid HTML5 document.
So the question is still open. Is this an HTML5 working draft error or is it an error in validate.w3.org?
source share