title: How do you find mismatched tags in HTML?
body: <p>I've inherited some rather large static HTML files that need to be fixed up to work in webkit-based browsers, Safari in particular. One of the common bugs I've found that cause rendering differences is missing <code>&lt;/div&gt;</code> tags. (Both IE7+ and FF3+ seem to ignore these, or make good guesses as to where to close the DIVs, and render as expected.) I'm used to using <code>vim</code> with HTML syntax highlighting for editing, but end up writing awk scripts to match starting and ending tags.</p>
  
  <p>What is your favorite tool or technique for matching start and end tags in a large HTML file?</p>
  
  <p>UPDATE: I'm currently in a shop that targets HTML 4.01 Strict, not XHTML.</p>