4 ms·
Is it really that much easier to write `<br>` and know that it isn't a problem, than just write `<br />`?
by oneeyedpigeon 10mo ago
Is it really that much easier to write `<br>` and know that it isn't a problem, than just write `<br />`?
- barnabee 10mo agoIt’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.
- epgui 10mo agoBad 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…”.
- intrasight 10mo agoI'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.
- eastbound 9mo agoIt triggers the linters so often. I shall keep my <input> tag open.
- TZubiri 10mo agoBut learning about self closing tags is an additional rule
- wizzwizz4 9mo ago<script /> is invalid HTML, and <img></img> is also invalid HTML. There's no way to avoid knowing HTML syntax.
- deleted 9mo ago[deleted]