kotlin-stdlib / kotlin.dom / createElement createElement JS 1.1 fun Document.createElement( name: String, init: Element.() -> Unit): Element Creates a new element with the specified name. The element is initialized with the speicifed init function.