Skip to content

Glossary: JavaScript in the Browser

createElement

Also written: document.createElement

Makes a new, empty element that is not on the page until you add it with append, prepend, before or after.

Where the book teaches it

Related terms

textContentappend, prepend, before, after, remove, replaceChildren