html slot ✓ The Web Component Slot element - HTML - MDN Web Docs
html slot Each slot can specify a CSS selector that determines which content goes into that slot For example, in the following HTML template, a paragraph taghtml slot The HTML slot> tag is used in web development to define a placeholder within a web component where external content can be inserted It is particularly useful
html slotThe slot> HTML element —part of the Web Components technology suite— is a placeholder inside a Tagged with html, tags, slot
html slot How should I decide to use one method over the other? It seems like if I want to be able to specify HTML rather than just text, I would choose