<template>
The <template> HTML element holds HTML fragments which you can clone and insert into the document using JavaScript.
Status
Baseline Widely Available (since 2018-05-12)
MDN documentation
Specifications
- HTML (#the-template-element), from HTML Workstream (WHATWG).
Browser support (view on caniuse.com)
- Chrome 26 Released on 2013-03-26
- Chrome Android 26 Released on 2013-04-03
- Edge 13 Released on 2015-11-12
- Firefox 22 Released on 2013-06-25
- Firefox for Android 22 Released on 2013-06-25
- Safari 8 Released on 2014-10-16
- Safari on iOS 8 Released on 2014-09-17
Surveys
- State of HTML 2025 > features > all features
- State of HTML 2025 > content > content pain points limitations 1
- State of HTML 2025 > content > content pain points features
- State of HTML 2025 > content > content pain points
- State of HTML 2025 > content > content features
- State of HTML 2024 > web components > web components features
- State of HTML 2024 > web components > web component features
- State of HTML 2024 > features > all features
- State of HTML 2023 > web components > web components main features
- State of HTML 2023 > features > all features
Usage (according to Chrome Platform Status)
~30.985% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist