tags:

views:

1902

answers:

6

What is the best way to find missing closing tags in my HTML? Validator shows that I have some issues but its really hard to track anything down.

I guess the best solution would be something that indents the code. That way a missing tag would be easier to identify. Anyone know of a tool to do this?

A: 

You could use a editor like notepad++ which can show if a tag is closed or not.

Pim Jager
+1  A: 

On the Mac I suggest TextMate - it comes with a bundle to validate HTML. http://macromates.com/

Ben Aston
+6  A: 

HTML Tidy

Steven A. Lowe
Tidy is also available as a Firefox plugin too. When you View Source on a webpage, you can double click the error and it will take you to the line and spot where the problem is.https://addons.mozilla.org/en-US/firefox/addon/249
TravisO
A: 

You can use stuff like http://infohound.net/tidy/ but any decent HTML editor will do this.

Dreamweaver has both validate and "format source", it certainly isn't the cheapest thing in the world, but it will get the job done.

DrG
A: 

DivCounter can be handy for helping to track these things down.

GSto
+1  A: 

The markup validator (assuming you mean "Missing but required" rather then "Optional and omitted")

David Dorward