<DOCTYPE html>
<html>
<head>
<meta http-equiv=" Content-Type" content="text/html; charset=UTF-8">
<title>02表单</title>
</head>
<body>
<form action="https://www.baidu.com" method="get">
用户名文本框:
<input type="text">
<br/>
密码输入框:
<input type="password">
<br/>
性别单选框:
<input type="radio" name="xb" id="male">
<label for="male">男</label>
<input type="radio" id="female" checked="checked">
<label for="female">女</label>
<br/>
年龄:
<input type="value">岁
</br>
出生年月:
<input type ="date">
</br>
你的爱好复选框:
<input type ="checkbox" id ="playfootball" name="hobby">
<label for="playfootball">playfootball</label>
<input type ="checkbox" name ="play" id ="play">
<label for="play" >play</label>
<!-- label的作用可以点击文字进行选中-->
<input type ="checkbox" name ="read" value ="read">read
<!-- 没有label时,只可以点击多选框进行选中-->
<br/>
来至哪里下拉框:
<select name="">
<option value="">上海</option>
<option value="">北京</option>
<option value="" selected="selected">深圳</option>
<option value="">广州</option>
<option value="">苏州</option>
</select>
工作单位下拉框:
<select name ="">
<option value ="">华为</option>
<option value ="">阿里</option>
<option value ="" selected="selected">腾讯</option>
</select>
<br/>
文本域:
<textarea name ="" id="" cols="20" rows="10"></textarea>
<br/>
按钮:
<input type="button" value="我就是普通按钮">
<br/>
操作按钮:
<input type="submit" value="提交"> <input type="reset" value="重置">
</form>
</body>
</html>