Indicates fragments of HTML used as a template. | HTML 5 |
HTML Syntax
<template
shadowrootmode = closed | open
shadowrootdelegatesfocus
shadowrootclonable
shadowrootserializable
shadowrootcustomelementregistry
>
NOTE: Both start and end tags are required.
The <template
> element is used to declare fragments of HTML that can be cloned and inserted in the document by script.
NOTE: This section of the workshop is under major reconstruction, in short, work in progress. So please bear with whatever inconvenience you may encounter; we hope to complete the job at the soonest possible time.
The <template>
element has no attribute of its own, but supports global attributes common to all HTML elements.
The following shows how the template element may be used.
SLOT