Example

HTML A simple code example of the <template> tag

Laboratory

description & Usage

The <template> tag is used to keep part of the hidden content of the html documents when the target page is loaded.

Notes

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<template>

Global Attributes

The template tag supports the HTML Global Attributes.

Event Attributes

The template tag supports the HTML Event Attributes.

More Examples

Example

HTML A simple code example of the <template> tag - Example #1

Laboratory

Related Pages

en