html表单案例

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>html案例</title>
</head>
<body>
<form action="#" method="post" ></form>
<table border="1" align="center" width="500">
<tr>
<td>
<label for="username">用户名</label>
</td>
<td><input type="text" name="username" id="username" placeholder="请输入用户名"></td>
</tr>
<tr>
<td><label for="password">密码</label></td>
<td><input type="password" name="password" id="password" placeholder="请输入密码"></td>
</tr>
<tr>
<td><label for="email">邮箱</label></td>
<td><input type="email" name="email" id="email" placeholder="请输入正确邮箱"></td>
</tr>password
<tr>
<td><label for="tel">手机号</label></td>
<td><input type="text" name="tel" id="tel" placeholder="请输入手机号"></td>
</tr>
<tr>
<td>性别</td>
<td>
<input type="radio" name="gender" value="male">男
<input type="radio" name="gender" value="female">女
</td>
</tr>
<tr>
<td>出生日期</td>
<td><input type="date" name="birthday"></td>
</tr>
<tr>
<td>验证码</td>
<td><input type="text" name="checkcode">
<img src="img/verify_code.jpg">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="登录">
</td>

</tr>
</table>
</body>
</html>
posted @ 2021-01-20 13:01  吃一点就饱  阅读(231)  评论(0)    收藏  举报