Skip to content

Latest commit

 

History

History

html-template-element

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Templates

<template>

The HTML <template> element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.

Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does process the contents of the element while loading the page, it does so only to ensure that those contents are valid; the element's contents are not rendered, however.

Read More on MDN

HTMLTemplateElement

.content

This is a DocumentFragment returned of the <template> content.

Apple Proposal

API

Issues

References