<slot>
HTML <slot> Element Reference
The HTML <slot> element defines an insertion point inside a web component shadow tree.
Categories
- Scripting
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical slot element example.
<template id="tool-card">
<slot name="title">Untitled tool</slot>
</template>