直播电商平台开发,HTML和CSS分别实现注册页面表单
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML注册页面</title>
</head>
<body>
<form action="#" method="post"><!--传入地址为:#-->
<table border="1" width="500px">
<tr>
<td><label for="username">用户名</label></td>
<td><input type="text" name="username" id="username" required></td><!--required为必选-->
</tr>
<tr>
<td><label for="password">密码</label></td>
<td><input type="password" name="password" id="password" required></td>
</tr>
<tr>
<td><label for="email">Email</label></td>
<td><input type="email" name="email" id="email" required></td>
</tr>
<tr>
<td><label for="name">姓名</label></td>
<td><input type="text" name="name" id="name" required></td>
</tr>
<tr>
<td><label for="tel">手机号</label></td>
<td><input type="text" name="tel" id="tel" required></td>
</tr>
<tr>
<td><label>性别</label></td>
<td><input type="radio" name="sex" value="male" checked="checked">男<!--checked为默认选择-->
<input type="radio" name="sex" value="famale">女</td>
</tr>
<tr>
<td><label for="birthday">出生日期</label></td>
<td><input type="date" name="birthday" id="birthday"></td>
</tr>
<tr>
<td><label for="checkcode">验证码</label></td>
<td><input type="text" name="checkcode" id="checkcode">
<img src="img/yzm1.jpg" width="100px" height="20px"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="注册"></td><!--colspan合并两个单元格-->
</tr>
</table>
</form>
</body>
</html>
以上就是 直播电商平台开发,HTML和CSS分别实现注册页面表单,更多内容欢迎关注之后的文章
标签:表单,HTML,注册,电商,CSS,页面 From: https://www.cnblogs.com/yunbaomengnan/p/16978642.html