HTML 사전

datalist

설명

The HTML Datalist Element (<datalist>) contains a set of <option> elements that represent the possible options for the value of other controls.

HTML 요소인 datalist(<datalist>)는 다른 컨트롤의 값으로 사용할 여러 선택 내용을 나타내는 <option> 요소 집합을 하위 요소로 포함한다.

Usage Context

Permitted content

사용할 수 있는 내용

Phrasing content or zero or more <option> elements

구절(Phrasing content, 일반 텍스트 내용 또는 텍스트를 포함하는 마크업 요소를 뜻한다)이나 <option> 을 사용할 수 있다. 이 때 <option> 은 전혀 사용하지 않을 수도 있다.

Tag omission

태그 생략

None, both the start tag and the end tag are mandatory

시작과 종료 태그 모두 사용해야 한다.

Permitted parent elements

사용할 수 있는 부모 요소

Any element that accepts phrasing content.

구절(phrasing content)를 사용할 수 있는 모든 요소

Normative document

규범 문서

 

HTML5, section 4.10.10

속성

이 엘리먼트는 전역속성을 지원한다.

예제

    <input list="browsers" />  
    <datalist id="browsers">  
      <option value="Chrome">  
      <option value="Firefox">  
      <option value="Internet Explorer">  
      <option value="Opera">  
      <option value="Safari">  
    </datalist>  

DOM Interface

This element implements the HTMLDataListElement interface.

<datalist>는 HTMLDataListElement 인터페이스를 구현한다.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원   4.0(2.0)   9.5  
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원   4.0(2.0)      

참고

댓글

댓글 본문
버전 관리
egoing
현재 버전
선택 버전
graphittie 자세히 보기