News for hackers. Stuff that matters.
Re:You are not required to close your <p>, <li>, <img>, or <... by oneeyedpigeon on Sunday January 11, 2026 @09:56AM (#46576241)
Is it really that much easier to write `<br>` and know that it isn't a problem, than just write `<br />`?
Re:You are not required to close your <p>, <li>, <img>, or <... by barnabee on Sunday January 11, 2026 @11:01AM (#46576842)
It’s much easier to have to remember fewer rules and for things to be ok if you get some wrong, yes.

Especially for casual users of HTML.

Re:You are not required to close your <p>, <li>, <img>, or <... by epgui on Sunday January 11, 2026 @11:56AM (#46577365)
Bad reasoning.

“Always close your tags” is a simpler rule (and fewer rules, depending how you count) than “Close your tags, except possibly in situations A, B, C…”.

Re:You are not required to close your <p>, <li>, <img>, or <... by intrasight on Sunday January 11, 2026 @12:27PM (#46577629)
I've been closing my tags for 30 years and I assume that I will for the rest of my days. I like that it validates as XML. Historically I used XSLT a LOT.
Re:You are not required to close your <p>, <li>, <img>, or <... by eastbound on Sunday January 11, 2026 @04:03PM (#46580048)
It triggers the linters so often. I shall keep my <input> tag open.
Re:You are not required to close your <p>, <li>, <img>, or <... by TZubiri on Sunday January 11, 2026 @12:07PM (#46577484)
But learning about self closing tags is an additional rule
Re:You are not required to close your <p>, <li>, <img>, or <... by wizzwizz4 on Sunday January 11, 2026 @02:43PM (#46579156)
<script /> is invalid HTML, and <img></img> is also invalid HTML. There's no way to avoid knowing HTML syntax.