<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<!-- 表单标签:收集用户信息,包括<form></form>表单域、控件、提示信息-->
<form action="test.php" method="post">
<!-- 表单控件:输入控件、下拉列表、文本域-->
<!-- 输入控件:<inpt> -->
<input type="text/">
用户名:<input type="text"/>
<br>密码:<input type="password"/>
<br />性别:<input type="radio" name="xingbie"/>男<input type="radio" name="xingbie"/>女
<br />爱好:<input type="checkbox"/>打篮球 <input type="checkbox"/>王者荣耀 <input type="checkbox"/>跳舞
<br /><input type="submit"/> <input type="reset"/> <input type="button" value="发送验证码"/>、
<!-- 下拉列表 -->
<br />籍贯:<select>
<optgroup value="guiyang" label="贵阳市">
<option>云岩区</option>
<option>花溪区</option>
<option>南明区</option>
</optgroup>
<optgroup value="guiyang" label="遵义市">
<option>汇川区</option>
<option>红花岗区</option>
</optgroup>
</select>
<!-- 文本域 -->
<br />留言:<textarea></textarea>
</form>
</body>
</html>
Notas de clase HTML cinco
Supongo que te gusta
Origin blog.csdn.net/huanhangDJH/article/details/114279896
Recomendado
Clasificación