<form>
• <form> 의 정의 및 사용법
- 사용자가 입력할 수 있는 서식 요소를 정의합니다.
- <form> 요소 안에서 사용할 수 있는 서식 요소의 종류는 다음과 같습니다.
- <input>,<textarea>,<button>,<select>,<option>,<optgroup>,<fieldset>,<label>
- *HTML5에서는 더 많은 서식 요소가 추가되었습니다.
• <input> 의 사용법
- <input>태그의 type 속성값의 종류는 다음과 같습니다.
- HTML4 : button, checkbox, file, hidden, image, password, radio, reset, submit, text
- HTML5에 새로생긴 속성값 : color, date, datetime, datetime-local, email, month, number, range, search, tel, time, url, week
• <form> 의 예제
<form>
<table border="1">
<caption>제목</caption>
<tbody>
<tr>
<th scope="row"><label for="name">이름</label></th>
<td><input type="text" name="" id="name" value="" /></td>
</tr>
<tr>
<th scope="row"><label for="number">전화번호</label></th>
<td>
<select id="number">
<option>010</option>
</select>
</td>
</tr>
</tbody>
</table>
</form>