version attribute | version property
Sets or retrieves the Document Type Definition (DTD) version that governs the current document.
Syntax
| HTML | <element version="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
the DTD version for the document.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 7.3 (Deprecated)
Remarks
There is no functionality implemented for this property unless defined by the author.
version was introduced in Microsoft Internet Explorer 6
The version property is deprecated in HTML 4.0 because it is redundant with version information provided in the document type declaration.
See also
Show: