Comment by assimpleaspossi
9 months ago
You are either running XHTML or you are not. No need to carry any compatibility overhead. I doubt he is serving XHTML.
9 months ago
You are either running XHTML or you are not. No need to carry any compatibility overhead. I doubt he is serving XHTML.
I personally prefer <input /> if only to stop other developers to not try doing <input>content </input>.
There are other tags you can omit the closing tag but yet the opening tag shouldn’t be self-closed.
I think even the final closing ol can be omitted as there are rules to auto close elements when encountering tags that don’t make sense in context.
I know that, but many developers don't. I can't wait to see the confusion on why my tag didn't auto-close like a <li> tag.
Ambiguity can be a dangerous thing, and not closing HTML tags can be a cause of that in my experience.
The term for such "other developers" is "hobbyists".
There are other terms but I won't list them here.
Sometimes "other developers" is also "coworkers".
I've found less ambiguity to be a better thing than not, where possible. Self-closing a tag that can't contain anything is one such example of removing ambiguity for "hobbyists".
4 replies →