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?

有帮助吗?

解决方案

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.

其他提示

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/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top