<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- -->
<form>
用户名:<input type="text" value="请输入用户名" maxlength="6" name="username"><br> 密码:
<input type="password"><br> 性别:男
<input type="radio" name="sex" value="臭豆腐">女<input type="radio" name="sex"><br> 爱好:吃饭
<input type="checkbox" checked="checked">睡觉<input type="checkbox">打豆豆<input type="checkbox"><input type="submit" value="免费注册"><br>
<input type="reset" value="重新填写"><br>
<input type="button" value="传需书籍"><br>
<input type="file">
</form>
</body>
</html>
表单标签
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<label for="sex">用户名:</label><input type="text" id="sex"><br>
<input type="radio" name="sex" id="nan"><label for="nan">男</label>
<input type="radio" name="sex" id="nv"><label for="nv">女</label>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
籍贯:
<select>
<option>山东</option>
<option>山西</option>
<option>北京</option>
<option>湖南</option>>
</select>
</body>
</html>