form标签
1.input标签
用户名:<input type="text" name="usingname">
<br>
密码:<input type="password" name="password">
<br>
验证码:<input type="text" name="code"><br>
性别:
<input type="radio" name="sex">男
<input type="radio" name="sex">女
<input type="radio" name="sex">中性<br><br>
兴趣:
<input type="checkbox" name="interest">编程
<input type="checkbox" name="interest">篮球
<input type="checkbox" name="interest">游戏<br>
<input type="button" value="提交" >
<input type="submit" value="登录">
type包含:
1.text表示文本 password表示暗码
2. radio表示单选框,但在name定义时要求是相同的
3.checkbox 表示多选框
4.button和submit都表示按钮,但submit会把你的信息封装起立到form的action中。
select标签
<select name="city">
<option>北京</option>
<option>天津</option>
<option>太原</option>
<option>西安</option>
</select><br>
下拉选择框。
textarea标签
<!-- 多行文本框 -->
<textarea name="info" rows="5" cols="100"></textarea><br>