SVG Document.doctype Property
The SVG Document.doctype property returns the doctype of the document.
Syntax:
doctype = document.doctype
Return value: This property returns the doctype of the document.
Example:
HTML
<!DOCTYPE html>
< html >
< body >
< svg width = "350" height = "500"
< script >
console.log(document.doctype)
</ script >
</ svg >
</ body >
</ html >
|
Output:
Last Updated :
30 Mar, 2022
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...