HTML input 태그

(Input 태그에서 넘어옴)
  다른 뜻에 대해서는 입력 문서를 참조하십시오.
  다른 뜻에 대해서는 prompt 문서를 참조하십시오.
HTML <input> tag
HTML input 태그

1 type 종류[ | ]

  • button
  • checkbox ★★
  • color
  • date
  • datetime
  • datetime-local
  • email
  • file ★★
  • hidden ★★
  • image
  • month
  • number
  • password ★★
  • radio ★★
  • range
  • reset
  • search
  • submit
  • tel
  • text ★★
  • time
  • url
  • week

2 예시 1: text, password[ | ]

<form action="login_form.php">
Username: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
</form>

3 예시 2: 여러가지 type[ | ]

<form>
	<input type="hidden" value="9999" /><br>
	<input type="text" name="comment" value="노코멘트" /><br>

	<label><input type="checkbox" name="agreed" />동의합니다.</label><br>
	
	<label><input type="radio" name="gender" />남성</label>
	<label><input type="radio" name="gender" />여성</label><br>
	
	패스워드: <input type="password" /><br>
	업로드할 파일: <input type="file" /><br>
	<input type="image" src="//mirrors.creativecommons.org/presskit/logos/cc.logo.png" /><br>
	
	<input type="button" value="버튼" /><br>
	<input type="reset" /><br>
	
	<input type="submit" />
</form>

4 예시 3: HTML5 확장 input 태그[ | ]

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}