分享好友 资讯首页 资讯分类 切换频道

html简单注册界面代码

2025-12-23 07:4000

html

<title>注册页面</title>

<style>

body {

font-family: Arial, sans-serif;

}

.container {

width: 300px;

margin: 0 auto;

padding: 20px;

border: 1px solid #ccc;

border-radius: 5px;

}

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

width: 100%;

html简单注册界面代码

padding: 12px 20px;

margin: 8px 0;

display: inline-block;

border: none;

border-bottom: 1px solid #ccc;

}

button {

background-color: #4CAF50;

color: white;

padding: 14px 20px;

margin: 8px 0;

border: none;

cursor: pointer;

width: 100%;

}

html简单注册界面代码

button:hover {

opacity: 0.8;

}

</style>

<div class="container">

<h2>注册</h2>

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

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

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

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

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

<button type="submit">注册</button>

</form>

</div>

这个简单的注册界面包含了一个文本输入框用于输入用户名,一个密码输入框用于输入密码,以及一个提交按钮用于提交表单,这只是一个基本的示例,实际的注册界面可能需要更多的验证和安全性措施来保护用户数据,表单的action属性应该指向处理注册请求的服务器端点。
举报
收藏 0
打赏 0
评论 0
 
友情链接