Closed ThomasLandauer closed 9 months ago
https://validator.w3.org/nu/ says:
Warning: Self-closing tag syntax in text/html documents is widely discouraged; it’s unnecessary and interacts badly with other HTML features (e.g., unquoted attribute values). If you’re using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool.
In short:
<span />
is wrong, whereas <span>
is at least a valid starting tag.
I tried ...
Let's make it right then and let's use <span></span>
OK, there you go :-)
AFAIK, both cases, before and after that change, are not valid HTML. SPAN is not void element. https://developer.mozilla.org/en-US/docs/Glossary/Void_element