Question

I have a large HTML file, and it looks like some tags are not closed. It's hard to find it. I am using VIM as the editor.

Is there any good way to find it?

Was it helpful?

Solution

You can validate your html using http://validator.w3.org/

Just make sure you specify the DOCTYPE correctly and it'll find anything that is invalid.

OTHER TIPS

I assume you are on running Linux?! If so, you could try Eclipse

It is a complete IDE, which will help you in many cases and make programming a lot more efficient

Just use Notepad++. It is free and light weight code editor, and I already found many unclosed tags in my html with it...

HTML Validator (extension for Firefox) has helped me in the past. You need to load the page in the browser to find the errors.

If you can put you code online you could try Dr. Watson.

Another validator to try is the CSE HTML Validator. The online version is here: http://www.OnlineWebCheck.com/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top