Get 182 slot game plugins, code & scripts on CodeCanyon. Buy slot game plugins, code & scripts from $10. All from our global community of web developers. Slot machine in Javascript. Learn how to build this. Author: Saurabh Odhyan. Tested in Firefox, Chrome and IE8.
The HTML <slot>
element—part of the Web Components technology suite—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.
Content categories | Flow content, phrasing content |
---|---|
Permitted content | Transparent |
Events | slotchange |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts phrasing content |
Implicit ARIA role | No corresponding role |
Permitted ARIA roles | No role permitted |
DOM interface | HTMLSlotElement |
This element includes the global attributes.
name
<slot>
element with a name
attribute.Note: You can see this complete example in action at element-details (see it running live). In addition, you can find an explanation at Using templates and slots.
Specification | Status | Comments |
---|---|---|
HTML Living Standard The definition of '<slot>' in that specification. | Living Standard | |
DOM The definition of 'Slots' in that specification. | Living Standard |
BCD tables only load in the browser