HTML <slot> Element Reference

The HTML <slot> element defines an insertion point inside a web component shadow tree.

<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>

Related references

Description

The HTML <slot> element defines an insertion point inside a web component shadow tree.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <slot> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies