<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单综合练习</title>
<style type="text/css">
form{width: 400px;background: #f7f7f7;padding: 10px;margin-top: 150px;margin-left: 300px;}
button{background: #808080;padding: 8px;border-radius:5px;}
button:hover{background: #919191;padding: 10px;border-radius:5px;}
input{padding: 8px;background: #f8f8f8;}
input:focus{padding: 8px;background: #a9a9a9;}
</style>
</head>
<body>
<form action="">
<fieldset>
<legend>信息注册</legend>
<p><label for="user">账号:</label><input type="text" name="user" id="user" placeholder="账号" required=""></p>
<p><label for="password">密码:</label><input type="password" name="password" id="password" placeholder="密码"></input></p>
<p><label for="tel">电话:</label><input type="tel" name="tel" id="tel" placeholder="电话"></p>
<p><label for="email">邮件:</label><input type="email" name="email" id="email" placeholder="电子邮箱"></p>
<!-- <p><label for=""></label>这样单击后自动获得焦点</p> -->
<!-- <input type="submit" value="注册"></input> -->
<button>注册用户</button>
</fieldset>
</form>
</body>
</html>
相关文章
- IT兄弟连 HTML5教程 HTML5表单 多样的输入类型2
- IT兄弟连 HTML5教程 HTML5表单 HTML表单中的get和post方法
- 12个优秀的 HTML5 网站设计案例欣赏
- ElementUI表单验证攻略:解决表单项启用和禁用验证的切换,以及动态表单验证的综合性问题
- 12个优秀的 HTML5 网站设计案例欣赏
- HTML5跨浏览器表单及HTML5表单的渐进增强
- 前端开发基础(HTML5 + CSS3)【第一篇】:HTML标签之文字排版、图片、链接、音频、视频 && 涵盖了两个综合案例 做到了基础学得会,实战写的出
- HTML5 表单新属性 pattern 的使用
- html5 + css + js制作一个简单的表单
- HTML5中表单验证的8种方法(转)