html—知识点
表单示例代码:
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>表单</title>
</head>
<body>
<h1>注册表单</h1>
<form action="" method="get">
<p>
<label for="username">用户名:</label>
<input type="text" name="username" id="username" />
</p>
<br>
<div id="">
<label>密 码:</label>
<input type="password" name="password" />
</div>
<br>
<div id="">
<label>性 别:</label>
<input type="radio" name="gender" id="man" value="0" /><label for="man">男</label>
<input type="radio" name="gender" id="women" value="1" /><label for="women">女</label>
</div>
<br>
<div id="">
<label>爱 好:</label>
<input type="checkbox" name="aihao" id="" value="basketball" />篮球
<input type="checkbox" name="aihao" id="" value="study" />学习
<input type="checkbox" name="aihao" id="" value="play" />逛街
<input type="checkbox" name="" id="" value="python" />python
<input type="checkbox" name="" id="" value="boos" />看书
<input type="checkbox" name="" id="" value="web" />前端
<input type="checkbox" name="" id="" value="linux" />linux
</div>
<br>
<div id="">
<label>个人照片</label>
<input type="file" name="" id="" value="" />
</div>
<br>
<div id="">
<label>个人描述</label>
<textarea name="introduce" rows="3" cols="3"></textarea>
</div>
<br>
<input type="hidden" name="wwwwwwwwwwwwwwww" id="" value="12" />
<div id="">
<label>个人籍贯</label>
<select name="site">
<option value ="shanghai">上海</option>
<option value ="">北京</option>
<option value ="">内蒙古</option>
<option value ="">河南</option>
<option value ="">河北</option>
<option value ="">新疆</option>
</select>
</div>
<br>
<div id="">
<input type="submit" name="" id="" value="提交" />
<!-- <input type="image" src="images/html5.png" /> -->
<input type="reset" name="" id="" value="重置" />
</div>
</form>
</body>
</html>