Hacker News new | ask | show | jobs
by 7786655 2153 days ago
Unquoted attributes are valid HTML.
1 comments

Just checked for myself, and you're correct. OP could have shortened the post by 90% if they just pointed to this fact. But while technically valid, for any reasonable HTML document, you'll run into cases where quotes are required. Example:

    <div class=foo bar>
At which point, if you use quotes once in your document, you should really use them throughout.