我知道两者都可以,但是一个比另一个更正确吗?
<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/