The slot Element
Learn the slot element: how a component built with shadow DOM leaves named places for a page author's own content. Covers default and named slots, fallback content, which nodes get assigned where, styling slotted content with ::slotted, the slotchange event, accessibility across the shadow boundary, and security notes. Includes a live slot lab and a which-slot matcher.