Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / HTML

<slot>

Placeholder inside a Web Component template that users can fill with their own markup.

Syntax
<slot name="...">

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working <slot> usage example
// Example for <slot>
// Standard verified syntax construct
console.log('<slot> initialized');
Standard HTML language feature verified across modern versions.