slot

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

slot 전역 특성은 요소에 섀도우 DOM 섀도우 트리를 할당합니다. slot 특성을 지정한 요소는 name 특성의 값이 요소의 slot 값과 일치하는 <slot> 요소에 할당됩니다.

예제는 템플릿과 슬롯 사용하기 안내서에서 확인할 수 있습니다.

명세

Specification
HTML
# attr-slot
DOM
# ref-for-dom-element-slot①

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
slot

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

같이 보기