Things I learned from Gallery

April 21, 2020

Repo: https://github.com/bendc/gallery

CSS

HTML

  • type="module": Causes the code to be treated as a JavaScript module.
  • <template>: The HTML Content Template (template) element is a mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.

JavaScript