Short answer: use the lowercase method attributes of the <form> tags, since the standard only allows lowercase letters.
Long answer: this is slightly dependent on the HTML version:
HTML5 The standard clearly states that the lowercase get displays the HTTP GET method, and the lowercase post displays the HTTP POST method [1]. And these are the only values mentioned here, attribute values are case sensitive, and an enumerated attribute only allows values specified in the standard. HTML5 examples are also used in lowercase. So, if you want to follow the HTML5 standard, use lowercase letters . In practice, this is not a problem with using uppercase letters with HTML5, although lately I have seen more use of uppercase letters. However, I see no reason why this should be good practice, as the standard states it differently.
XHTML . Use lowercase . DTD xhtml-strict and xhtml-transitional define only lowercase get and post [2, 3]. This is even more important here, since using uppercase letters will result in an invalid XHTML document that can actually cause ugly browser errors (depending on DTD, browser, and http content type).
HTML 4 . It was common practice these days to use uppercase , but lowercase letters also worked well in practice. This is just my personal experience, I'm not going to look for the HTML 4 standard, because these days it seems inappropriate (and no one has ever followed it strictly anyway).
W3Schools also uses lowercase letters [4].
[1] https://www.w3.org/TR/html5/forms.html#attr-fs-method
[2] https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd line 695
[3] https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd line 888
[4] https://www.w3schools.com/tags/att_form_method.asp
Christopher K.
source share