3 ms·
Unquoted attributes are valid HTML.
by 7786655 6y ago
Unquoted attributes are valid HTML.
- wwv25 6y agoJust 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.