Form表单标签
绝对路径
: 从
盘符
开始查找,直到找到文件为止,路径
+文件名
![](https://i-blog.csdnimg.cn/blog_migrate/93844ff010f04e8f12a689d498e29839.png)
相对路径 :当前文件和目标文件的相对路径
语法结构
属性及其作用
action
|
跳转的路径
|
name
|
表单的名字
|
method
|
跳转的请求方式
post get
默认的是
get
请求
|
get请求:不安全
post请求: 相较于安全
post和get请求的区别![](https://i-blog.csdnimg.cn/blog_migrate/320e2204f43a5e8060dad4950730a760.png)
form表单代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>表单标签</title>
</head>
<body>
<form action="..\demo02.html" >
用户名:<input type="text" name="username">
密码:<input type="password" name="password"> <input type="submit"> </form>
</body>
</html>
效果图