Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / HTML

<template>

Holds client-side content that is not rendered when the page loads but can be instantiated at runtime via JS.

Syntax
<template id="...">...</template>

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working <template> usage example
// Example for <template>
// Standard verified syntax construct
console.log('<template> initialized');
Standard HTML language feature verified across modern versions.