You are here: Reference > HTML > attributes > version (html)

version attribute (html)

Browser support:
Specifies which HTML DTD version governs the current document.
This attribute is deprecated. Use the !DOCTYPE element instead.
JavaScript page for this attribute: version. You can find other example(s) there.

Possible values:

String that sets the DTD version information.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the version attribute:
<html version="2.0">
</html>
Did you find this example helpful? yes no

Example HTML code 2:

Recommendation:
<!DOCTYPE html>
<html>
</html>
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content