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.
Press F5 to refresh the page to see that any other unclosed div are there. You can also validate your page in Dreamweaver too.
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.
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 />.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With