HTMLTemplateElement

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

Properties

This interface inherits the properties of HTMLElement.

content Read only

A read-only DocumentFragment which contains the DOM subtree representing the <template> element's template contents.

Methods

This interface inherits the methods of HTMLElement.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
HTMLTemplateElement
26
13
22
No
15
8
≤37
26
22
Yes
8
1.5
content
26
13
22
No
15
8
≤37
26
22
Yes
8
1.5

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement