Hacker News new | ask | show | jobs
Self-closing tags (<tag />) do not exist in HTML (developer.mozilla.org)
4 points by jobsort 1174 days ago
1 comments

Interesting. It also notes that some code formatters add it anyway, like the one I'm using in VSCode. I got used to that back in the XHTML days so it would seem weird to me to just have a naked <input> or <img> by itself... but the spec says that's correct!