<slot>
noun
say it: “SLOT tag” /ˈslɑt tæɡ/
The HTML element that marks a spot inside a component's shadow DOM where the content you write between the component's tags shows up.
What is <slot>?
<slot> — The element that marks where assigned light-DOM content appears inside a shadow tree.
<span class="label"><slot name="label"></slot></span>
In a sentence
- “The review card's slot shows whatever review text I write between its opening and closing tags.”
- “If I leave the card empty, the slot shows its fallback text, "No review yet".”
Level: Freelancer · More HTML terms at this level
Updated