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.
You can use it if you have some HTML code you want to use over and over again, but not until you ask for it. To do this without the
- Type: -
- Self-closing: No
- Semantic value: No