Self-closing tags ( ) do not exist in HTML
developer.mozilla.org
Self-closing tags ( ) do not exist in HTML
1–2 of 2 posts
Re: Self-closing tags (<tag />) do not exist in HTML
#2Interesting. 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 or by itself... but the spec says that's correct!