<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单</title>
</head>
<body>
<form action="#" method="get">
<label for="username">用户名:</label><input name="username" placeholder="请输入账号" id="username"><br>
密码:<input name="password" type="password"><br>
性别:<input name="gender" type="radio" value="man">男
<input name="gender" type="radio" value="women">女<br>
爱好:<input name="hobby" type="checkbox" value="Java" checked>Java
<input name="hobby" type="checkbox" value="game">游戏
<input name="hobby" type="checkbox" value="basketable">篮球<br>
图片:<input name="image" type="file"><br>
隐藏域:<input name="id" value="hidden" type="hidden"><br>
取色器:<input type="color" name="color"><br>
生日:<input name="birthday1" type="datetime-local"><br>
生日:<input name="birthday2" type="date"><br>
邮箱:<input name="mail" type="email"><br>
年龄:<input name="year" type="number"><br>
省份:<select name="province">
<option value="">--请选择--</option>
<option value="1">广东</option>
<option value="2">北京</option>
<option value="3">上海</option>
</select><br>
自我描述:<textarea></textarea>
<input type="submit" value="登陆">
</form>
</body>
</html> |
|