append

append inserts nodes after the last child of the node, while replacing the strings in the nodes with equivalent text nodes.

Syntax

node.append(nodes)

Examples

1

2

3

Internal

children

firstElementChild

lastElementChild

prepend

querySelector

querySelectorAll

replaceChildren

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu