form表单
Posted gjm960406
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了form表单相关的知识,希望对你有一定的参考价值。
form表单
form 中method get获取属性 post 正常只能提交到自己的服务器
input text文本
input password 多用于密码格式
input checkbox 复选框
input number 用于选择数字
input button 按钮
input reset 重置
date 属性日期
input 和label 一起使用 label中写入for所用的名字和input的id名相同 可以在点中字的时候选中框
file可上传文件
form 1、用来提交数据
2、提交数据{
数据提交路径 action="url"
数据名称(name)
数据的值(value)
}
以上是关于form表单的主要内容,如果未能解决你的问题,请参考以下文章