登录注册HTML页面代码「建议收藏」

登录注册HTML页面代码「建议收藏」一、注册创建register.html文件,录入如下代码<!DOCTYPEhtml><html><head><metacharset=”UTF-8″><title></title><styletype=”text/css”>form{width:100%;

大家好,又见面了,我是你们的朋友全栈君。

一、注册

创建register.html文件,录入如下代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css"> form { 
     width:100%; height:100%; margin-top: 100px; margin-bottom: 100px; background:#008B8B; } div { 
     display:inline-block; padding-top: 255px; padding-bottom: 255px; padding-left: 1px; padding-right: 1px; } h2 { 
     font-family: "微软雅黑"; font-size: 40px; color:black; } #log { 
     color:blue; } </style>
    </head>
    <body>
        <form>
		    <center>
            <div>
            <h3>
            注册
			</h3>
			<p>
				用户名:<input type="text"/>
			</p>
			<p>&emsp;码:<input type="password"/>
			</p>
			<p>
				手机号:<input type="text"/>
			</p>
			<p>
				<input id=reg type="submit" value="立即注册" />
			</p>
			<p>
				已有账号?<a href="login.html">请登录</a>
			</p>   
            </div>
            </center>			
        </form>      
    </body>
</html>

打开register.html文件,效果如下:
在这里插入图片描述

二、登录

创建login.html文件,录入如下代码

<!DOCTYPE html>
<html>
    <head>
		<meta charset="UTF-8">
        <title></title>
        <style type="text/css"> form { 
     width:100%; height:100%; margin-top: 100px; margin-bottom: 100px; background:#008B8B; } div { 
     display:inline-block; padding-top: 255px; padding-bottom: 255px; padding-left: 1px; padding-right: 1px; } h2 { 
     font-family: "微软雅黑"; font-size: 40px; color:black; } #log { 
     color:blue; } </style>
    </head>
    <body>
		<!--div class="div"> <img src="favicon.png" width="100%" height="200px" alt="" id="picture"> </div-->
        <form name="login">
            <center>
            <div>
            <h2>
                登录
            </h2>
            <p>
                用户名:<input type="text"/>
            </p>
            <p>&emsp;码:<input type="password"/>     
            </p>
            <p>
                <input id=log type="submit" value="立即登录" />
            </p>
			<p>
				没有账号?<a href="register.html">请注册</a>
			</p>   
            </div>
            </center>
        </form>
    </body>
</html>

打开login.html文件,效果如下:在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/132509.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号