| 属性 | 值 | 描述 |
| action | URL | 提交表单时,向何处发送表单数据 |
| method | get、post | 设置表单以何种方式发送到表单页面 |
| name | form_name | 表单的名称 |
| target |
_blank、_self _parent、_top | 在何处打开action URL |
| enctype |
application/x-www-form-urlencoded multipart/form-data text/plain
| 在发送表单数据之前如何对其进行编码 |
本文详细介绍了HTML表单的各项属性及其用途,包括action用于指定表单数据提交的目标URL,method属性定义了表单数据发送的方式(GET或POST),name属性为表单指定唯一标识符等。此外还介绍了如何通过target属性控制表单提交后结果文档显示的位置,以及enctype属性对表单数据进行编码的几种方式。
| 属性 | 值 | 描述 |
| action | URL | 提交表单时,向何处发送表单数据 |
| method | get、post | 设置表单以何种方式发送到表单页面 |
| name | form_name | 表单的名称 |
| target |
_blank、_self _parent、_top | 在何处打开action URL |
| enctype |
application/x-www-form-urlencoded multipart/form-data text/plain
| 在发送表单数据之前如何对其进行编码 |
2436

被折叠的 条评论
为什么被折叠?