snippets
use a template from the page
- HTML templates can be included directly on
a page by embedding them in
<script>tags withtype="text/html"anddata-template="NAME"attributes. - The
<script>tag is used instead of<template>to prevent issues with some browsers attempting to load images from<template>tags before they are used.
html
switch to template
javascript
;