<template>
Widely available since 2018-05-12
The <template>
HTML element holds HTML fragments which you can clone and insert into the document using JavaScript.
Learning resources on MDN
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.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 2024: web_components/web_component_features question
- State of HTML 2024: web_components/web_components_features question
- State of HTML 2024: features/all_features question
- State of HTML 2023: web_components/web_components_main_features question
- State of HTML 2023: features/all_features question
Usage (according to Chrome Platform Status)
~35.025% of page loads. More data at chromestatus.
Specifications
- HTML (#the-template-element), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature