博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
html5,表单的综合案例
阅读量:7120 次
发布时间:2019-06-28

本文共 1118 字,大约阅读时间需要 3 分钟。

<!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>

转载于:https://www.cnblogs.com/houweidong/p/5934252.html

你可能感兴趣的文章
Java™ 教程(原子变量)
查看>>
非对称加密算法--RSA加密原理及运用
查看>>
精读《如何编译前端项目与组件》
查看>>
[ 逻辑锻炼] 用 JavaScript 做一个小游戏 ——2048 (详解版)
查看>>
【产品】产品经理常用的五大分析法
查看>>
Javascript二进制运算符的一些运用场景
查看>>
常见Promise面试题
查看>>
一个专科生学习JAVA目标月薪2万是否不切实际?
查看>>
保持ssh的连接不断开
查看>>
Java 高级算法——数组中查询重复的数字之二
查看>>
897-递增顺序查找树
查看>>
nginx配置后重启无效与重启失败
查看>>
【笔记】JavaScript高级篇——面向对象、原型、继承
查看>>
令人头疼的命名
查看>>
Linux 下配置 node + mongodb 环境
查看>>
Oracle数据库merge into的使用,存在则更新,不存在则插入
查看>>
[LeetCode] Integer to English Words
查看>>
mysql,php和js根据经纬度计算距离
查看>>
如何发布第一个属于自己的npm包
查看>>
Git使用入门
查看>>