How to check HTML version of any website

To check HTML version of a website or web application you can simply check the source code  of the site (normally  CTR+U ) and look at the Doctype on top any other code.

You should see something similar to this but you will be interested in the first line only. This looks like HTML5 Doctype declaration.

Check HTML 5 Doctype version

With the entry of HTML5 the Doctype declaration is much simpler and you can spot it in a second.

Check HTML 4 Doctype version

HTML 4 has lots of Doctype declarations depending of the subversion it is used.

And this are the XHTML Doctype versions

XHTML standard is a well-formed version of HTML and may therefore be parsed using standard XML parsers, unlike HTML, which requires a specific parser.

Check HTML version via W3C

W3 Consortium has a free HTML free validation service that can tell you what HTML version uses a specific website.

There are also some extensions for Chrome and Firefox for real time validation that can be used for this purpose.

Leave a Reply

Your email address will not be published. Required fields are marked *

nineteen − three =