<template>

noun

say it: “TEM-plit tag” /ˈtɛmplɪt tæɡ/

The HTML element that holds a piece of HTML the browser keeps but doesn't show or run, ready to be copied into the page later, such as a card for each new item.

What is <template>?

<template> — The element that stores inert HTML fragments for later use.

<template id="order-row">
  <li class="order"></li>
</template>

In a sentence

  • “Nothing inside the template showed on the page, and its image didn't even download until I used it.”
  • “The review card lives in a template element, and the script copies it once for every review.”

Level: Freelancer · More HTML terms at this level

Updated