We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

HTMLTemplateElement

The HTMLTemplateElement interface enables access to the contents of an HTML <template> element.

Properties

This interface inherits the properties of HTMLElement.

HTMLTemplateElement.contentRead only
DocumentFragment: Returns the <template> element's template contents.

Methods

This interface inherits the methods of HTMLElement.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLTemplateElement interface' in that specification.
Living Standard  
HTML5
The definition of 'HTMLTemplateElement interface' in that specification.
Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support261322 No158
content261322 No158
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support2626 Yes22 ?8 Yes
content2626 Yes22 ?8 Yes

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz, sideshowbarker
Last updated by: fscholz,