News for hackers. Stuff that matters.
Re:Stop ‘Using’ “Useless” ‘“‘Quotes’”’ by 7786655 on Tuesday July 21, 2020 @12:20PM (#23908135)
Unquoted attributes are valid HTML.
Re:Stop ‘Using’ “Useless” ‘“‘Quotes’”’ by wwv25 on Tuesday July 21, 2020 @02:15PM (#23909299)
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.