2-11.フォームを作ろう

フォームの部品

input type="text":お名前 P75

input type="search":検索するときのテキスト

input type="email" メールアドレス

input type="tel" 電話番号

input type="url" URL
input type="radio" ラジオボタン P76
性別: その他
input type="checkbox" チェックボックス P77
好きな色:
-->

サブミット: P78

ボタン(サブミットと同等): P78

select name="xxxx" リストボックス P79

select name="xxxx" multiple リストボックス(複数選択) P79


複数行入力 P80

複数行入力(固定表示)

2-12.より使いやすいフォーム

ラベル Forに紐づくIDのコントロールと振舞う P81

好きな色: labelタグで囲むだけでも同じ