현재 번역은 완벽하지 않습니다. 한국어로 문서 번역에 동참해주세요.
개요
The HTML Datalist Element (<datalist>) contains a set of <option>
elements that represent the values available for other controls.
- 콘텐츠 범주 Flow content, phrasing content.
- 허용되는 콘텐츠 Either phrasing content or zero or more
<option>
elements. - 태그 생략 None, both the starting and ending tag are mandatory.
- 허용되는 부모 요소 Any element that accepts phrasing content.
- DOM 인터페이스
HTMLDataListElement
속성
This element has no other attributes than the global attributes, common to all elements.
예제
<div>Choose a browser from this list:</div> <input list="browsers" /> <datalist id="browsers"> <option value="Chrome"> <option value="Firefox"> <option value="Internet Explorer"> <option value="Opera"> <option value="Safari"> </datalist>
결과
사양
사양 | 상태 | 주석 |
---|---|---|
WHATWG HTML Living Standard The definition of '<datalist>' in that specification. |
Living Standard | |
HTML5 The definition of '<datalist>' in that specification. |
Recommendation |
브라우저 호환성
기능 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 20 | 4.0 (2.0) | 10 | 9.5 | Not supported |
기능 | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | 33 | 4.0 (2.0) | Not supported | 10 | Not supported |