英文解释:
html:超文本标记
head:头部
meta:元信息
charset:字符集
title:标题
body:文档主体
action:提交到的服务器地址
method:提交方式,get或post
novalidate:不验证
target:打开方式
input:输入框
type:指定输入内容的类型;默认text,单行文本框。
text:单行文本框
password:密码输入框,会以原点或星号隐藏,但是发送到服务器正常接收,只是看不到
name:接收找的是name属性值
value:默认值
datetime-local:时间输入框
color:颜色选择器
file:文件域

演示代码:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <form action="http://localhost/php.php" method="post">
            <input type="datetime-local" name="" id="" value="" />
            <br />
            <input type="color" name="" id="" value="" />
            <br />
            <input type="file" name="" id="" value="" accept="image/x-png" multiple="multiple" />
        </form>
    </body>
</html>
打开支付宝首页搜“559920739”领红包,领到大红包的小伙伴赶紧使用哦! (如果你觉得本文不错,请扫描下面二维码随意打赏哦)
最后修改:2020 年 10 月 30 日
如果觉得我的文章对你有用,请随意赞赏