Comment by assimpleaspossi
9 months ago
Note: the <input> tag does not use and does not need a closing slash and never has in any HTML specification.
https://html.spec.whatwg.org/dev/input.html#the-input-elemen...
9 months ago
Note: the <input> tag does not use and does not need a closing slash and never has in any HTML specification.
https://html.spec.whatwg.org/dev/input.html#the-input-elemen...
It's sometimes done to make the same markup compatible with XHTML, without harming its interpretation in HTML.
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>.
8 replies →