template element

An HTML element whose contents are parsed but not rendered or run, kept as a reusable blueprint that scripts copy into the page.

In more detail

The content property holds an inert DocumentFragment: images inside do not download and scripts do not run until a clone is inserted. You fill each copy with data and append it.

Related terms

Taught in

References