html - POST 与 post,GET 与 get

标签 html forms tags capslock

我知道两者都可以,但是一个比另一个更正确吗?

<form method="POST" />

对比

<form method="post" />

为什么要使用其中之一?

最佳答案

一段时间以来,W3C 倾向于将属性名称和值小写。

例如 xhtml 1.0 standard 的第 4.11 节2002 年:

4.11. Attributes with pre-defined value sets

HTML 4 and XHTML both have some attributes that have pre-defined and limited sets of values (e.g. the type attribute of the input element). In SGML and XML, these are called enumerated attributes. Under HTML 4, the interpretation of these values was case-insensitive, so a value of TEXT was equivalent to a value of text. Under XML, the interpretation of these values is case-sensitive, and in XHTML 1 all of these values are defined in lower-case.

关于html - POST 与 post,GET 与 get,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4106544/

相关文章:

html - 如果 Bootstrap 4 中未禁用按钮,如何将按钮光标更改为指针?

python - Tornado 的 ORM

html - <i> 标签有什么用?

html - 在 ionic 标签内插入换行符

php - 使用mysql确定流行标签?

html - 在 Microsoft Edge 中使用内联 block 显示问题

javascript - 如何在 JavaScript 中过滤期间排除列

javascript - 在 div 悬停时隐藏所有其他具有相同名称的 div,显示悬停的 div

javascript - 防止表单重定向或刷新提交?

javascript - Meteor 中的级联选择控件