News for hackers. Stuff that matters.
Re:The case against self-closing tags in HTML by chrisfinazzo on Thursday July 06, 2023 @12:29PM (#36618497)
I'm mostly HTML5 at this point and have been for some time. The only exception I would make is things (say, Standard Ebooks) that haven't made the jump yet so their linters freak out if you don't do things exactly as they expect.

For the record, anyone who writes `<br />` as `<br>` is...misinformed.

Re:The case against self-closing tags in HTML by acabal on Thursday July 06, 2023 @12:51PM (#36618923)
It's not our (SE's) choice to use XHTML in ebooks, it's part of the epub spec. So we merely expect valid XHTML per the epub spec, and valid XHTML requires self-closing tags.