博主信息
博文 7
粉丝 0
评论 0
访问量 4562
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
0630作业
曾宇的博客
原创
507人浏览过
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>表单</title>
  8. </head>
  9. <body>
  10. <h3>用户注册</h3>
  11. <fieldset>
  12. <legend>必填项</legend>
  13. <form action="" method="GET" style="background-color: lightcyan;">
  14. <div>
  15. <label for="username">账号</label>
  16. <input type="text" id="username" name="username" autofocus required placeholder="不少于6位">
  17. </div>
  18. <div>
  19. <label for="hanpi">密码</label>
  20. <input type="password" id="hanpi" name="password" required placeholder="不少于5位 且至少有两个字母">
  21. <button>显示密码</button>
  22. </div>
  23. <div>
  24. <label for="username">邮箱</label>
  25. <input type="email" id="email" name="email" placeholder="@..........">
  26. </fieldset>
  27. </div>
  28. <div>
  29. <label for="">性别</label>
  30. <input type="radio">
  31. <label for=""></label>
  32. <input type="radio">
  33. <label for=""></label>
  34. <input type="radio">
  35. <label for="" " checked id="secret">保密</label>
  36. </div>
  37. <label>爱好</label>
  38. <input type="checkbox" name="hobby []" id="game" checked> <label for="">游戏</label>
  39. <input type="checkbox" name="hobby []" id="tirp"> <label for="">旅游</label>
  40. <input type="checkbox" name="hobby []" id="shoot"> <label for="">摄影</label>
  41. <input type="checkbox" name="hobby []" id="football" checked> <label for="">足球</label>
  42. <button>提交</button>
  43. </form>
  44. </body>
  45. </html>
  46. ##选择器
  47. <!DOCTYPE html>
  48. <html lang="en">
  49. <head>
  50. <meta charset="UTF-8">
  51. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  52. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  53. <title>选择器</title>
  54. </head>
  55. <body>
  56. <style>
  57. /* h1{
  58. color: lightcyan; */
  59. }
  60. </style>
  61. <h1 style="color:red;">5</h1>
  62. <h1>6</h1>
  63. <h1>7</h1>
  64. <h1>8</h1>
  65. </body>
  66. </html>
批改老师:PHPzPHPz

批改状态:合格

老师批语:
本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学