HTML.version (Property)

The version string of an HTML document.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myHTML.version
HTML syntax:<HTML VERSION="aVersion">
Argument list:aVersionA version text

This property is intended to hold the value of the VERSION="..." HTML tag attribute which is used in conjunction with the <HTML> tag. It has now been superseded by the <!DOCTYPE> DTD tag and is now deprecated.

The MSIE browser does reflect this HTML tag into the version property, although it is not mentioned in the documentation.