form태그는 사용자에게 정보를 받아 전송할 수 있게 한다.
<form action="/user_update.php" method="get">
<label for="username">이름:</label>
<input type="text" id="username" name="username"><br><br>
<label for="userage">나이:</label>
<input type="text" id="userage" name="userage"><br><br>
<input type="submit" value="등록">
</form>
form태그에 사용되는 태그리스트
<input>
<textarea>
<button>
<select>
<option>
<optgroup>
<fieldset>
<label>
<output>
Attribute | Value | Description |
---|---|---|
accept-charset | character_set | 전송될 데이터에 사용된 문자 인코딩 설정 |
action | URL | 데이터가 전송될 서버(페이지 주소) 설정 |
autocomplete | on off |
자동 완성 기능 설정 |
enctype | application/x-www-form-urlencoded multipart/form-data text/plain |
서버에 전송될 데이터의 인코딩 형식 설정 |
method | get post |
전송 방식 설정 |
name | text | 폼 이름 설정 |
novalidate | novalidate | 데이터의 적합성(유효성) 검사 설정 |
rel | external help license next nofollow noopener noreferrer opener prev search |
현재 문서와 연결된 문서의 관계 설정 |
target | _blank _self _parent _top |
데이터 전송 후 표시될 창 설정 |

반응형
'HTML' 카테고리의 다른 글
header 태그 (0) | 2021.02.01 |
---|---|
h1 ~ h6 태그 (0) | 2021.01.31 |
footer 태그 (0) | 2021.01.29 |
figure 태그 (0) | 2021.01.28 |
figcaption 태그 (0) | 2021.01.27 |