HTMLTemplateElement

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

EventTarget Node Element HTMLElement HTMLTemplateElement

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

Specification
HTML Standard
# htmltemplateelement

Browser compatibility

BCD tables only load in the browser