컴

입력 제한(Input Restrictions) 1

· 2017-01-08 (일) 16:06:22 · 2085

 

입력 제한(Input Restrictions)

몇 가지 일반적인 입력 제한 목록이 있습니다 (일부는 HTML5에서 새로 추가되었습니다). 

 

AttributeDescription
disabledSpecifies that an input field should be disabled
maxSpecifies the maximum value for an input field
maxlengthSpecifies the maximum number of character for an input field
minSpecifies the minimum value for an input field
patternSpecifies a regular expression to check the input value against
readonlySpecifies that an input field is read only (cannot be changed)
requiredSpecifies that an input field is required (must be filled out)
sizeSpecifies the width (in characters) of an input field
stepSpecifies the legal number intervals for an input field
valueSpecifies the default value for an input field

 

다음 장에서는 입력 제한에 대해 자세히 설명합니다. 다음 예제에서는 0에서 100 사이의 값을 10 단위로 입력 할 수있는 숫자 입력 필드를 표시합니다. 기본값은 30입니다. OperaSafariChromeFirefoxInternet Explorer 예 <form>   수량:   <input type = "number"name = "points"min = "0"max = "100"step = "10"value = "30"> </ form> 

댓글을 작성하시려면 로그인이 필요합니다.

퍼블리셔팁

1,282건

퍼블리싱과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
HTML 17-01-13 조회 1,987
HTML 17-01-13 조회 1,982
HTML 17-01-12 조회 2,240
HTML 17-01-12 조회 1,864
HTML 17-01-12 조회 2,185
HTML 17-01-11 조회 1,687
HTML 17-01-11 조회 2,233
HTML 17-01-11 조회 2,417
HTML 17-01-10 조회 1,876
HTML 17-01-10 조회 2,524
HTML 17-01-10 조회 3,598
HTML 17-01-09 조회 3,615
HTML 17-01-09 조회 2,443
HTML 17-01-09 조회 2,033
HTML 17-01-08 조회 2,162
HTML 17-01-08 조회 2,086
HTML 17-01-08 조회 2,296
HTML 17-01-06 조회 2,399
HTML 17-01-06 조회 2,381
HTML 17-01-06 조회 2,555
HTML 17-01-05 조회 2,403
HTML 17-01-05 조회 2,302
HTML 17-01-05 조회 2,673
HTML 17-01-04 조회 2,284
HTML 17-01-04 조회 2,551
HTML 17-01-04 조회 2,377
HTML 17-01-03 조회 2,440
HTML 17-01-03 조회 2,575
HTML 17-01-03 조회 1,914
HTML 17-01-02 조회 2,277