html5-表单的综合实例
2017-09-16 19:29
260 查看
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单的综合实例</title>
<style type="text/css">
body{background:url(pic/1.png);}
form{width: 400px;background: #f0f0f0;padding: 10px;margin-top: 250px;margin-left: 600px;}
button{background: #808080;padding: 8px;border-radius: 5px;}
input{padding: 8px;background: #f8f8f8;}
input:focus{background: #ffc0cb}
button:hover{background: #ffc0cb;padding: 10px;}
</style>
</head>
<body>
<form action="">
<fieldset>
<legend>用户注册</legend>
<label for="user">用户</label><input type="text" name="user" id="user" placeholder="用户名" required=""><br>
<label for="password">密码</label><input type="password" name="password" id="password" placeholder="密码"><br>
<label for="tel">电话</label><input type="tel" name="tel" id="tel" placeholder="电话"><br>
<label for="email">邮箱</label><input type="email" name="email" id="email" placeholder="电子邮箱"><br>
<!-- <input type="submit" value="注册"> -->
<button>注册</button>
</fieldset>
</form>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单的综合实例</title>
<style type="text/css">
body{background:url(pic/1.png);}
form{width: 400px;background: #f0f0f0;padding: 10px;margin-top: 250px;margin-left: 600px;}
button{background: #808080;padding: 8px;border-radius: 5px;}
input{padding: 8px;background: #f8f8f8;}
input:focus{background: #ffc0cb}
button:hover{background: #ffc0cb;padding: 10px;}
</style>
</head>
<body>
<form action="">
<fieldset>
<legend>用户注册</legend>
<label for="user">用户</label><input type="text" name="user" id="user" placeholder="用户名" required=""><br>
<label for="password">密码</label><input type="password" name="password" id="password" placeholder="密码"><br>
<label for="tel">电话</label><input type="tel" name="tel" id="tel" placeholder="电话"><br>
<label for="email">邮箱</label><input type="email" name="email" id="email" placeholder="电子邮箱"><br>
<!-- <input type="submit" value="注册"> -->
<button>注册</button>
</fieldset>
</form>
</body>
</html>
相关文章推荐
- HTML5 原质化设计表单简单实例学习
- HTML表单综合实例
- HTML5 from表单实例
- HTML5的表单验证实例
- HTML5入门----表单验证及实例
- html5--2.10综合实例2-移动端页面练习
- html5,表单的综合案例
- html5--5-16 综合实例绘制饼图
- HTML5新增的表单元素和属性实例解析
- HTML表单综合实例
- jquery mobile + html5 手机app表单跨域提交实例(手机app开发html5 juqery moblie phonegap系列一)
- html5--3.22 综合实例03
- HTML5和css3实例:制作HTML5验证的网页表单
- js html5推送 实例
- HTML5 本地文件操作之FileSystemAPI实例(二)
- [原创]MongoDB综合实例一
- HTML5智能表单的使用和规范
- Servlet的5种方式实现表单提交(注册小功能),后台获取表单数据实例
- HTML5 - 表单客户端验证
- yii表单验证用法 实例