| タグ | 説明 | 例 |
| <form> | 入力フォーム全体 | <form action="send.php" method="post">
<label>名前:</label>
<input type="text" name="name">
<button>送信</button>
</form>
|
| <input> | 入力欄。type で種類が変わる(text, number, password, checkbox ...) | <input type="text" placeholder="お名前">
<input type="number" value="20">
<input type="checkbox"> 同意する
|
| <textarea> | 複数行のテキスト入力 | <textarea rows="4" cols="30" placeholder="感想を書いてください"></textarea>
|
| <select> | プルダウンメニュー | <select>
<option>りんご</option>
<option>みかん</option>
<option>ぶどう</option>
</select>
|
| <button> | ボタン | <button id="startButton">スタート</button>
|
| <label> | 入力項目の説明。for と id を揃えると、ラベルを押しても入力欄が選ばれる | <label for="name">名前:</label>
<input type="text" id="name">
|