HTML slot tag - W3Schools
: The Web Component Slot element - MDN Web Docs
Element: slot property. The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in. A slot is a placeholder inside a web component that users can fill with their own markup (see Using templates and slots for more information).
Element: slot property - Web APIs | MDN - MDN Web Docs
HTML provides a
Template, slot, and shadow | web.dev
The
Slot shadow DOM, komposisi
let myArr = ["Audi", "BMW", "Ford", "Honda", "Jaguar", "Nissan"]; function showContent () {. let temp, item, a, i; // Get the template element: temp = document.getElementsByTagName("template") [0]; // Get the DIV element from the template: item = temp.content.querySelector("div"); // For each item in the array: