1 学习html的表单
form表单
<form>
<!>input 元素</!>
</form>
input输入元素
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>
结果显示
type设置密码字段:密码字段字符不会明文显示,而是以星号或圆点替代。
<form>
Password: <input type="password" name="pwd">
</form>
结果显示
radio单选按钮
<form>
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
</form>
结果显示
复选框
<form>
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>
结果显示
submit提交按钮
<form name="input" action="html_form_action.php" method="get">
Username: <input type="text" name="user">
<input type="submit" value="Submit">
</form>
结果显示
2 没问题
3 明天继续