On this page
  1. <slot>
  2. Summary
  3. Notes & Best Practices
  4. Example

<slot>

Prev: `<template>` | Up: interactive | Next: `<link>`
Rel: interactive, Interactive & Scripting Guide
Ref: MDN Web Docs — <slot>
Tags: #public #web #html #elements #interactive #tier/specialized


Summary

Insertion placeholder inside a Shadow DOM tree for projecting light-DOM children.

Notes & Best Practices

Example

<template id="card-tpl">
  <article>
    <header><slot name="title">Untitled</slot></header>
    <slot></slot>
  </article>
</template>

Linked from

Related notes