mdn slotelement .slot = aString. A DOMString. The definition of 'slot' in that specification. The slot property of the Element interface returns the name of the shadow DOM slot attached to the element. AThe slot> tag is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together. Use the template>