IT/html

입력 유형 날짜 / 시간 - 로컬(Input Type Datetime-local) 입력 유형 전자 메일(Input Type Email) 입력 유형 검색(Input Type Search)

조원태 2017. 1. 8. 16:12
반응형

입력 유형 날짜 / 시간 - 로컬(Input Type Datetime-local)


<input type = "datetime-local">은 시간대가없는 날짜 및 시간 입력 필드를 지정합니다.


브라우저 지원에 따라 날짜 선택 도구가 입력 필드에 나타날 수 있습니다.


OperaSafariChromeFirefoxInternet Explorer

<form>

  생일 (날짜 및 시간) :

  <input type = "datetime-local"name = "bdaytime">

</ form>



입력 유형 전자 메일(Input Type Email)


<input type = "email">은 전자 우편 주소가 들어있는 입력 필드에 사용됩니다.


브라우저 지원에 따라 전자 메일 주소를 제출할 때 자동으로 유효성을 검사 할 수 있습니다.


일부 스마트 폰은 이메일 유형을 인식하고 이메일 입력과 일치하도록 키보드에 ".com"을 추가합니다.


OperaSafariChromeFirefoxInternet Explorer

<form>

  이메일:

  <input type = "email"name = "email">

</ form>



입력 유형 검색(Input Type Search)


<input type = "search">는 검색 필드에 사용됩니다 (검색 필드는 일반 텍스트 필드처럼 동작 함).


OperaSafariChromeFirefoxInternet Explorer

<form>

  Google 검색 :

  <input type = "search"name = "googlesearch">

</ form>



반응형