DocumentType: name property - Web APIs | MDN
Value
A string.
Examples
js
const docType = document.implementation.createDocumentType("html", "", "");
console.log(docType.name); // Displays `html`
Specifications
| Specification |
|---|
| DOM # dom-documenttype-name |