MDN self-hosted library · e01.org

Node: appendChild() method

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const paragraph = document.body.appendChild(document.createElement("p"));
// You can append more elements to the paragraph later