7-HTML Forms2

beans_I·2023년 10월 26일

[23-2] 웹프로그래밍

목록 보기
10/13

output

input타입은 oninput에서 정의하면서 표시된 값이 출력되게 해주는 element이다.
http://www.w3schools.com/html/tryit.asp?filename=tryhtml_elem_output

TYPE

range

type="text"

  • 일반적인 텍스트워드를 받는다.

number

  • 숫자를 받는다. min, max attribute로 최대 최소값의 validation을 진행할 수 있다.
  • step : ^을 눌렀을때 얼마나 늘어나는지

password

  • 우리가 흔히 아는 pwd입력.

submit

reset

  • form에 있는 입력값들을 빈칸으로 초기화한다.

color

date

email

image

file

hidden

  • 검색을 위한 type이다.

tel

  • telephone number를 입력 가능한 부분이다.
  • 전화와의 구분

url

attribute

value

  • ㅑㅞ셔

readonly

disabled

  • 값 변경 불가능. 희미하게 보인다.
  • 서버로는 전달되지 않는다.

size

  • inputbox의 크기 조정

maxlength

  • 최대 몇 자를 넣을 것인가.
  • minlegth도 있음.

pattern

placeholder

required

  • 반드시 입력해야 하게 설정

step

autofocus

height width

  • 근데 이건 css로 하면 되는거 아님?

list

  • 어떤 단어를 입력할 수 있는지 옵션을 보여준다. 사용자가 입력하는 것도 가능

autocomplete ="on"

form

formaction

formenctype

  • 보통 submit 버튼에 사용

formmethod

  • 보통 submit 버튼에 사용
  • form에 정의된 부분은 override

formtarget

  • action의 탭을 override한다.
  • 보통 submit 버튼에 사용

formnovalidate

novalidate

공통 attribute

min max size step value...
placeholder
업로드중..

profile
노션으로 옮겼습니다. https://beans-i.notion.site/main?pvs=74

0개의 댓글