html:
    (1) 会在页面显示实时选择颜色,但Ie不支持
    (2)会有输入邮箱地址的输入框,在submit提交时,会检查地址格式,如果不对,会报错
    (3) 文本框 type=”reset”>一键还原为value值
    (4)type后有readonly,只读
    (5)type后有disabled,不可用

    1. <!DOCTYPE html>
    2. <html lang="zh">
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
    6. <title>Document</title>
    7. </head>
    8. <body>
    9. <form action="target.html">
    10. <input type="color">
    11. <br><br>
    12. <input type="email">
    13. <input type="submit" value="提交">
    14. <input type="reset" value="重置">
    15. <input type="text" value="康楚明" readonly>
    16. <input type="text" value="康钦杰" disabled>
    17. </form>
    18. </body>
    19. </html>

    image.png