TIME2025-11-21 09:14:37

苹果ID 信息网[G550]

搜索
热点
新闻分类
友情链接
首页 > 资讯 > html5登录注册页面
资讯
html5登录注册页面
2025-10-18IP属地 美国0

html

<title>登录注册页面</title>

<style>

body {

font-family: Arial, sans-serif;

margin: 0;

padding: 20px;

}

.container {

max-width: 400px;

margin: 0 auto;

padding: 20px;

border: 1px solid #ccc;

border-radius: 5px;

}

h2 {

text-align: center;

}

label {

html5登录注册页面

display: block;

margin-bottom: 10px;

}

input[type="text"], input[type="password"] {

width: 100%;

padding: 10px;

border-radius: 5px;

border: 1px solid #ccc;

}

input[type="submit"] {

width: 100%;

padding: 10px;

background-color: #4CAF50;

color: white;

border: none;

border-radius: 5px;

cursor: pointer;

}

</style>

<div class="container">

html5登录注册页面

<h2>登录</h2>

<form action="/login" method="post">

<label for="username">用户名:</label>

<input type="text" id="username" name="username" required><br><br>

<label for="password">密码:</label>

<input type="password" id="password" name="password" required><br><br>

<input type="submit" value="登录">

</form>

<h2>注册</h2>

<form action="/register" method="post">

<label for="username">用户名:</label>

<input type="text" id="username" name="username" required><br><br>

<label for="email">邮箱:</label>

<input type="email" id="email" name="email" required><br><br>

<label for="password">密码:</label>

<input type="password" id="password" name="password" required><br><br>

<input type="submit" value="注册">

</form>

</div>

这是一个简单的登录和注册页面,包含了基本的 HTML 表单元素和样式,登录表单和注册表单分别使用不同的 action URL(/login/register),你可以根据实际情况进行修改,表单中的输入字段包括用户名、密码和邮箱(仅注册表单中包含),并且使用了required 属性来确保用户必须填写这些字段,样式部分使用了简单的 CSS 来美化页面,你可以根据自己的需求进一步定制页面样式和功能。