Problem
It can be quite hard to find these errors in pages full of markup and deeply nested templates.
Proposed solution (some ideas)
Add special page that does basic html validation, e.g.:
- http://jona.ca/blog/unclosed-tag-finder
- https://gist.github.com/Munawwar/9353965
- http://cerebrumcontorquet.debun.nl/brainwaves/tablecheck/index.php
- https://validator.w3.org/
Add a basic html beautifier to the page, e.g. http://minifycode.com/html-beautifier/.
Special:Expandtemplates works, but it is very hard to discern the exact problem without a linter or a beautifier.