表单标签练习
作者:互联网
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>案例</title>
</head>
<body>
<form action="#" method="get">
<table border="1" align="center">
<tr>
<td>
<label for="1">
用户名:
</label>
</td>
<td>
<input type="text" name="username" placeholder="请输入账号" id="1">
</td>
</tr>
<tr>
<td>
<label for="2">
密码:
</label>
</td>
<td>
<input type="password" name="password" placeholder="请输入密码" id="2">
</td>
</tr>
<tr>
<td>
<label for="3">
Email:
</label>
</td>
<td>
<input type="email" name="email" placeholder="请输入Email" id="3">
</td>
</tr>
<tr>
<td>
<label for="4">
姓名:
</label>
</td>
<td>
<input type="text" name="name" placeholder="请输入真实姓名" id="4">
</td>
</tr>
<tr>
<td>
<label for="5">
手机号:
</label>
</td>
<td>
<input type="text" name="tnumber" placeholder="请输入您的手机号" id="5">
</td>
</tr>
<tr>
<td>
性别:
</td>
<td>
<input type="radio" name="gender" value="男">男
<input type="radio" name="gender" value="女">女
</td>
</tr>
<tr>
<td>
<label for="6">
出生日期:
</label>
</td>
<td>
<input type="date" name="date" id="6">
</td>
</tr>
<tr>
<td>
验证码:
</td>
<td>
<input type="text" name="tnumber">
<img src="img/verify_code.jpg">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" value="注册">
</td>
</tr>
</table>
</form>
</body>
</html>
标签:用户名,手机号,标签,练习,验证码,表单,出生日期,Email 来源: https://www.cnblogs.com/Sym8023/p/15856489.html