html网页制作注册页面
时间: 2023-12-09 13:04:24 浏览: 26
以下是一个简单的HTML注册页面的例子,包括用户名、密码和注册按钮。你可以根据需要进行修改和美化。
```html
<!DOCTYPE html>
<html>
<head>
<title>注册页面</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: #f2f2f2;
}
form {
background-color: #fff;
border: 1px solid #ccc; border-radius: 5px;
padding: 20px;
margin: 50px auto;
max-width: 500px;
}
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px; margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit], input[type=reset] {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover, input[type=reset]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<form>
<h2>注册</h2>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<input type="submit" value="注册">
<input type="reset" value="重置">
</form>
</body>
</html>
```