That said, it failed to persuade me. I’d still favour the self-closing style in any style guide. At least now it would be a more informed (and better scoped) preference.
Considering two style guides:
- <tag> is an opening tag
- </tag> is a closing tag
- <tag /> is a self-closing tag
Note: it remains the responsibility of the author to know which tags are self-closing.
Seems more useful than: - <tag> is an opening tag or a self-closing tag
- </tag> is a closing tag
Admittedly, it’s subjective. That’s why any consistent guide is better than none.