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. ALearn about the Element.slot property, including its type, code examples, specifications, and browser compatibility.