version attribute (html)
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?
|
Example HTML code 2:
Recommendation:
|
|||
<!DOCTYPE html> <html> </html> |
|||
|
|||
Did you find this example helpful?
|
Supported by tags:
External links:
User Contributed Comments