In an HTML document, the document.createElement() method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized.
document.createElement()
localName
MDN Reference
Optional
In an HTML document, the
document.createElement()method creates the HTML element specified bylocalName, or an HTMLUnknownElement iflocalNameisn't recognized.MDN Reference