標籤:常用標籤 音樂 body pos enter table check box checked
form表單的標籤
做一個如的form表單:
我們的代碼如下:
<body leftmargin="400px" topmargin="200px">
<form method="post" action="http://www.baidu.com">
<table border="2px" heigth="200px">
<tr>
<td align="right">使用者名稱:</td>
<td>
<input type="text" name="" id="" value="" placeholder="請輸入使用者名稱" />
</td>
</tr>
<tr>
<td align="right">密碼:</td>
<td>
<input type="password" name="" id="" value="" placeholder="請輸入密碼"/>
</td>
</tr>
<tr>
<td align="right">確認密碼:</td>
<td>
<input type="password" name="" id="" value="" placeholder="請再次輸入密碼"/>
</td>
</tr>
<tr>
<td align="right">驗證碼:</td>
<td>
<input type="text" name="" id="" value="" placeholder="請輸入驗證碼" /><img src="1.gif" width="30px"/>
</td>
</tr>
<tr>
<td align="right">性別:</td>
<td>
<input type="radio" name="r1" id="r1" checked="checked" value="" />
<lable for="r1">男</lable>
<input type="radio" name="r1" id="r2" value="" />
<lable for="r1">女</lable>
</td>
</tr>
<tr>
<td align="right">年齡:</td>
<td>
<input type="text" name="" id="" value="" placeholder="請輸入年齡"/>
</td>
</tr>
<tr>
<td align="right">愛好:</td>
<td>
<select name="" id="si" size="1" multiple="multiple">
<option value="">購物</option>
<option value="">上網</option>
<option value="">運動</option>
<option value="">看電影</option>
<option value="">聽音樂</option>
</select>
</td>
</tr>
<tr>
<td align="right">你喜歡的遊戲:</td>
<td>
<input type="checkbox" name="" id="c1" value="b1" />
<label for="c1">穿越火線</label>
<input type="checkbox" name="" id="c2" value="b2" checked="checked"/>
<label for="c2">英雄聯盟</label>
<input type="checkbox" name="" id="c3" value="b3" />
<label for="c3">逆戰</label>
<input type="checkbox" name="" id="c4" value="b4" />
<label for="c1">守望先鋒</label>
</td>
</tr>
<tr>
<td align="right">郵箱:</td>
<td>
<input id="" name="" value="" placeholder="請輸入郵箱" />@qq.com7
</td>
</tr>
<tr>
<td align="right">郵箱密碼:</td>
<td>
<input type="password" name="" id="" value="" placeholder="請輸郵箱入密碼"/>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" name="" id="" value="提交" />
</td>
<td>
<input type="reset" name="" id="" value="重設"/>
</td>
</tr>
</table>
</form>
</body>
form的常用標籤和屬性都有了,有什麼問題多多交流。
form表單的屬性標籤和練習