name property (doctype)
Returns the name of the doctype element.
The name is specified immediately after the DOCTYPE keyword.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that represents the name of the doctype element.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the name property:
Did you find this example helpful?
User Contributed Comments