createElement
fun <T : HTMLElement> createElement(tagName: TagName<T>, options: ElementCreationOptions = definedExternally): T(source)
In an HTML document, the document.createElement() method creates the HTML element specified by localName, or an HTMLUnknownElement if localName isn't recognized.
fun createElement(tagName: String, options: ElementCreationOptions = definedExternally): HTMLElement(source)