Skip to main content

One doc tagged with "custom-elements"

View all tags

Web Components in HTML

Learn web components from the HTML side: build your own tags with custom elements, keep markup and styles private with shadow DOM, reuse templates and slots, send events across the shadow boundary, and enhance progressively. Covers naming, lifecycle callbacks, attributes and properties, ::part and custom properties, accessibility, security, and when to choose something else. Includes a live custom element lab and a which-technology matcher.