Web Component Getting started with Web Component Availability


Native implementations

The <template> element is implemented in every modern browsers:

  • Chrome,
  • Edge,
  • Firefox,
  • Opera,
  • Safari,
  • ...

Custom Elements customElements.define(), Shadow DOM attachShadow() and HTML Imports <link rel="import"> are implemented in the latest versions of Chrome and Opera.


For other browsers, you can use a polyfill library: