This is a basic method I’ve used to find missing HTML element open and close tags. I use the text editor EditPad Pro which is very regular expression friendly. The idea is to use a regular expression to match a type or types of HTML elements and then fold the lines of the HTML text to the lines that match the regular expression. From there you have a view of the HTML source with only the lines that have the type of HTML tag(s) you are interested in viewing.

I created a short tutorial to demonstrate what to do:

I hope I’ve gotten the basic idea across. There may be better ways to do this, but if you are stuck with only your text editor and HTML then this technique might bail you out ;-)

Technical HTML December 9, 2009