用于网站的登录注册交换数据
一、form 属性
<form action="https://www.baidu.com/" method="get" name=""></form>
1、action:链接跳转的服务器地址
action="服务器地址"
2、method:提交方式
method="get/post"
get:请求数据,数据不安全,会在网址显示输入的内容(例如账号和密码)
post:发送数据,数据相对安全,不会显示输入的内容
3、name:选择器,与id选择器类似,区别就是id选择器有权重
name="名称"