SVG Document.doctype Property Last Updated : 30 Mar, 2022 Improve Improve Like Article Like Save Share Report 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" xmlns="http://www.w3.org/2000/svg"> <script> console.log(document.doctype) </script> </svg> </body> </html> Output: Like Article Suggest improvement Previous SVG Element.outerHTML Property Next SVG Document.head Property Share your thoughts in the comments Add Your Comment Please Login to comment...