self_example/java_web/HTML/html/07-表单标签.html

32 lines
746 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>07-表单标签</title>
</head>
<body>
<!--
form:
action:指定表单数据提交的URL ,将来可以写服务器相关的路径
* 表单想数据要想被提交则必须指定其name属性
method:指定表单提交的方式
1.get:默认值
* 请求参数会拼接到URL后面
* url长度有限制4kb
2.post:
* 请求参数会在http请求协议的请求体中
* 请求参数大小是无限制的
-->
<form action="#" method="post">
<input type="text" name ="username">
<input type="submit">
</form>
</body>
</html>