prepend

open fun prepend(vararg nodes: Node)(source)
open fun prepend(vararg nodes: String)(source)

The Document.prepend() method inserts a set of Node objects or strings before the first child of the document. Strings are inserted as equivalent Text nodes.

MDN Reference