一个简单的Html注册网页

<html>
	<head>
		<title>新用户注册</title>
		<style type="text/css">
			
      .register_div{font-family: "Microsoft YaHei";}
      .form_text{height:35px;border:1px solid #aaaaaa;outline:none;margin-top:20px;font-size:14px;}
      .form_text_big{width:70%;}
      .form_text_small{width:20%;}
      .login_button{width:70%;height:35px;outline:none;border:none;margin-top:20px;}
      .links{color:rgb(50,187,119);}
      .links:hover{color:rgb(0,137,69)}
      .small{font-size:13px;}
      .link_left{float:left;}
      .link_right{float:right;}
      input {font-family: "Microsoft YaHei";}
      .s_green{background-color:rgb(50,187,119);color:#ffffff;}
      .s_green:hover{background-color:rgb(0,137,69)}
      .register_div{width:420px;height:550px;margin:80 auto;text-align:center;background-color:#ffffff;}			
      			
		</style>
	</head>		
	<body style="background-color:black;">
		
			<div class="register_div">
			<div class="title">
				<br>
				<h2>新用户注册</h2>
			</div>
			<div class="login_form_div">
				<form>
					<input class="form_text form_text_big" type="text" placeholder="请输入用户名"/><br>
					<input class="form_text form_text_big" type="password" placeholder="请输入密码"/><br>				
					<input class="form_text form_text_big" type="password" placeholder="请再次输入密码"/><br>	
					
					<div>
						<input class="form_text form_text_small" type="text" placeholder="验证码"/>
						<img style="margin-bottom:-12px;" src="check.png" width="100" height="40"/>
						<a class="links" href="#">看不清,换一张</a>
					</div>
					
					
					<input class="form_button login_button s_green" type="button" value="立即注册"/>
				</form>
			</div>
			<div style="width:70%;margin:1px auto;">
				<a class="links link_right small" href="#">已有账号,立即登录</a>
			</div>
			</div>
						
	</body>	
</html>


效果图

转载于:https://my.oschina.net/marner/blog/768685

### 回答1: 首先,为了创建一个html注册网页,你需要一个文本编辑器,例如Notepad或Sublime Text。然后,你需要添加一些html代码,以便创建你的注册页面。具体来说,你需要添加一个表单元素,用于收集用户输入的信息,然后添加一些JavaScript代码,用于处理用户输入的数据。最后,你可以添加一些CSS来调整你网页的外观,以确保它看起来舒适而美观。 ### 回答2: 当然,我很乐意为您编写一个简单HTML 注册网页示例。以下是示例代码: ```html <!DOCTYPE html> <html> <head> <title>注册页面</title> </head> <body> <h2>注册新用户</h2> <form> <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> <label for="confirm-password">确认密码:</label> <input type="password" id="confirm-password" name="confirm-password" required><br><br> <label for="email">电子邮件:</label> <input type="email" id="email" name="email" required><br><br> <input type="submit" value="注册"> </form> </body> </html> ``` 这是一个简单注册页面,包含了用户名、密码、确认密码和电子邮件的输入框。每个输入框都使用了 `required` 属性,这意味着用户必须填写相应的信息才能提交表单。在提交表单时,用户点击 "注册" 按钮。 这只是一个基本的示例,您可以根据实际需要进行自定义和扩展。 ### 回答3: <!DOCTYPE html> <html> <head> <title>注册页面</title> </head> <body> <h1>注册</h1> <form action="register.php" 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> <label for="email">邮箱:</label> <input type="email" id="email" name="email" required><br><br> <label for="gender">性别:</label> <select id="gender" name="gender" required> <option value="male">男</option> <option value="female">女</option> <option value="other">其他</option> </select><br><br> <input type="submit" value="注册"> </form> </body> </html> 这是一个简单注册网页,使用HTML编写。该页面有一个标题为“注册”的大标题,然后是一个包含用户名、密码、邮箱和性别的注册表单。表单中的每个输入字段都使用了必需属性“required”,以确保用户必须填写这些信息。用户名字段是一个文本输入框,密码字段是一个密码类型的输入框,邮箱字段是一个电子邮件类型的输入框。性别字段是一个下拉菜单,提供了男、女和其他三个选项。 当用户填写完表单并点击“注册”按钮后,表单的数据将被提交到“register.php”页面进行处理。用户填写的用户名、密码、邮箱和性别将作为输入数据传给服务器端,以便进行后续的注册处理操作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值