博客列表 >input表单编写

input表单编写

P粉036614676
P粉036614676原创
2022年10月21日 18:55:22647浏览
  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. <h2>用户注册</h2>
  11. <form action="form.php" method="post" enctype="application/x-www-form-urlencoded" target="_blank" id="register">
  12. <fieldset>
  13. <legend>基本信息</legend>
  14. <div class="uname">
  15. <label for="name">用户名:</label>
  16. <input type="text" id="name" placeholder="admin" name="name" required>
  17. </div>
  18. <div class="pas">
  19. <lable for="password">密码:</lable>
  20. <input type="password" name="password" value="123456" id="password" readonly>
  21. <submit onclick="change_pas(event)">修改密码</submit>
  22. </div>
  23. <div class="email">
  24. <label for="email">邮箱</label>
  25. <input type="email" name="email" id="email" placeholder="user@email.com">
  26. </div>
  27. <div class="age">
  28. <label for="age">年龄:</label>
  29. <input type="number" name="age" id="age" value="18" min="18" max="80" step="10">
  30. </div>
  31. <div class="birthday">
  32. <label for="birthday">生日:</label>
  33. <input type="date" name="birthday" id="birthday" value="2022.1.1" min="2022.1.1" max="2022.1.6">
  34. </div>
  35. <div class="blog">
  36. <label for="blog">url地址:</label>
  37. <input type="url" name="blog" id="blog" placeholder="http://">
  38. </div>
  39. <div class="color">
  40. <label for="color">取色器:</label>
  41. <input type="color" name="color" id="color" onchange="this" value="#FFFF00">
  42. <output>#FFFF00</output>
  43. </div>
  44. </fieldset>
  45. <fieldset>
  46. <legend>其他信息:</legend>
  47. <input type="hidden" name="hid" value="2022.1.1">
  48. <div class="upload">
  49. <label for="file">上传照片</label>
  50. <input type="file" name="user_pic" id="ipload">
  51. <button type="button">上传</button>
  52. </div>
  53. <div class="range">
  54. <label for="range">星级</label>
  55. <input type="range" name="range" id="range" min="0" max="5" value="0" step="1" oninput="getStatus(this)">
  56. <output>0</output>
  57. </div>
  58. <div class="progress">
  59. <label for="progress">进度</label>
  60. <progress name="progress" max="100" value="10"></progress>
  61. <output>10%</output>
  62. <button type="button" onclick="handle(this)">+1</button>
  63. </div>
  64. </div>
  65. </fieldset>
  66. </form>
  67. </body>
  68. </html>
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议