Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Discover if there is a missing close tag in HTML while using Chrome?

Is there a way to use Google Chrome to discover if the HTML is missing any closing tags?

I need do this on the localhost so an external HTML validator won't work.

like image 340
Reactgular Avatar asked May 25 '13 17:05

Reactgular


People also ask

How do I find missing closing div?

Press F5 to refresh the page to see that any other unclosed div are there. You can also validate your page in Dreamweaver too.

Which tag has no closing tag in HTML?

What Is a Void Element? The void elements or singleton tags in HTML don't require a closing tag to be valid. These elements are usually ones that either stand alone on the page ​or where the end of their contents is obvious from the context of the page itself.

Is it mandatory to have close tag in HTML?

XHTML is more strict than HTML, and requires that all open tags must be closed, even if they're not container tags. Therefore, non-container tags end in />. For example, the tag for a line break is <br />.


1 Answers

Use the official HTML validator from the W3C. There is an option for direct input, simply copy/paste your html markup into the formfield.

http://validator.w3.org/#validate_by_input

Perhaps there is also a plugin for your favorite IDE which can validate html.

like image 101
Christoph Avatar answered Oct 18 '22 17:10

Christoph