mdn slotA named slot is a slot> element with a name attribute. Example. Let’s make an example using the slot> element along with the template> element. Partnering slot> withSlots are identified by their name attribute, and allow you to define placeholders in your template that can be filled with any markup fragment you want when the element is used