# 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 <template> 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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)

## `HTMLTemplateElement`

  - [Read More on MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement)

### .content

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


## Apple Proposal

  - https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Template-Instantiation.md



# 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 <template> 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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)

## `HTMLTemplateElement`

  - [Read More on MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement)

### .content

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


## Apple Proposal

  - https://github.com/whatwg/html/issues/2254
  - https://github.com/w3c/webcomponents/blob/gh-pages/proposals/Template-Instantiation.md



Add link to apple proposal
Add link to apple proposal
