如何设计一个HTML用户注册页面,代码是什么
Admin 2022-07-05 群英技术资讯 1186 次浏览
今天就跟大家聊聊有关“如何设计一个HTML用户注册页面,代码是什么”的内容,可能很多人都不太了解,为了让大家认识和更进一步的了解,小编给大家总结了以下内容,希望这篇“如何设计一个HTML用户注册页面,代码是什么”文章能对大家有帮助。
设计上图中的网页:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
form{
width: 800px;
height: 700px;
border: 1px solid red;
margin: auto;
background: url(images/tree.jpg) no-repeat -40px 300px;
}
form h3{
margin-left: 200px;
}
p{
margin-left: 200px;
}
hr{
margin-left: 200px;
}
.a1{
margin-left: 85px;
}
.a2{
margin-left: 110px;
}
input,
textarea
{
background: url(images/attention.png) no-repeat right;
}
button{
margin-left: 200px;
background: rgb(81, 187, 125);
color: white;
}
span#as:hover input{
width: 300px;
height: 40px;
}
</style>
</head>
<body>
<form action="">
<h3>用户注册:</h3>
<hr>
<p>用户昵称:<span class="a1" id="as"><input type="text" required placeholder autofocus></span> <hr></p>
<p>注册邮箱:<span class="a1" id="as"><input type="email" required placeholder="javin@example.com"></span><hr></p>
<p>密码: <span class="a2" id="as"><input type="password" required placeholder></span><hr></p>
<p>性别:<span class="a2">男<input type="radio" name="1" checked>
女 <input type="radio" name="1"> </span><hr>
</p>
<p>年龄:<span class="a2" id="as"><input type="number" name="number1" required placeholder></span><hr></p>
<p>兴趣爱好:<span class="a1">
足球<input type="checkbox" name="1">
篮球<input type="checkbox" name="1">
游泳<input type="checkbox" name="1">
唱歌<input type="checkbox" name="1">
跑步<input type="checkbox" name="1">
瑜伽<input type="checkbox" name="1">
</span><hr></p>
<p>自我介绍: <span class="a1"><textarea name="abcde" cols="30" rows="10" required placeholder>Please enter your message</textarea></span><hr> </p>
<button type=submit>立即注册</button>
<div></div>
</form>
</body>
</html>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
淘宝网页中使用的是import,而很多网站都是使用link,当然还有一些页面比较简单,流量很大的网站,是直接将CSS写在html代码中的?他们有什么区别?css用import还是link好?从经典论坛和另外一个网站大概了解了一下:1、淘宝网页中大部分是这样写的:2、而很多网站使用的都是link:3、而像google百度163等网站他们都是直接写在 ...
css背景样式包含:背景颜色“background-color”、背景图片“background-image”、背景定位“background-position”、背景重复“background-repeat”、“background”等。
H5之前要实现这个功能还要用到JS,H5出来之后新增加了placeholder属性,有了这个属性就就能轻松实现这个功能。定义和用法placeholder属性提供可描述输入字段预期值的提示信息(hint)。该提示会在输入字段为空时显示,并会在字段获得焦点时消失。注释:placeholder属性适用于以下的<input>类型:text,search,url,tele
这篇文章主要介绍了Html5移动端div固定到底部实现底部导航条的几种方式,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
传统网页布局的三种方式网页布局的本质——用CSS来摆放盒子。把盒子摆放到相应位置.CSS提供了三种传统布局方式(简单说,就是盒子如何进...
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
7x24小时售前:400-678-4567
7x24小时售后:0668-2555666
24小时QQ客服
群英微信公众号
CNNIC域名投诉举报处理平台
服务电话:010-58813000
服务邮箱:service@cnnic.cn
投诉与建议:0668-2555555
Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 ICP核准(ICP备案)粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008