2009-04-22
HTML vol.10
- form
- method
form
表示されないが、選択した値を外部に送信する領域
<form method="post" action="送信先"> </form>
- fieldset
- 項目群
- legend
- 項目名
<fieldset> <legend>項目名</legend> 内容 </fieldset>
- input
typeの値によって見栄えが代わる。
| text | 一行のテキストボックス |
| password | パスワード用のテキストボックス |
| checkbox | 複数選択可能なチェックボックス |
| radio | 単一選択が可能なラジオボタン |
| submit | 送信ボタン |
| reset | リセットボタン |
- label
どの文字がinput要素に対応しているかを指し示すことができる。
指定されている文字をクリックするとフォームにフォーカスが移る。
<form ... <label for="name">名前:</label> <input name="name" id="name" type="text"> </form>
method
データの送信方式を指定する。
| get | 情報を得るときはget |
| post | 情報を登録するはpost |
Copyright © crazyup. All rights reserved.


