form表單的屬性標籤和練習

來源:互聯網
上載者:User

標籤:常用標籤   音樂   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表單的屬性標籤和練習

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.