When a <form> tag omits its method attribute, browsers submit it with GET by default. That behavior is
well defined, but it makes the form’s intent implicit.
Empty or invalid method values are also problematic because HTML falls back to GET for them. This can make the markup
misleading: the source code looks intentional, but the browser will not use the declared method.
Using an explicit valid method makes form behavior easier to understand and avoids accidental fallback to GET.
Add a method attribute to each <form> tag and use one of the HTML-valid values: get,
post, or dialog.
<form action="/search"> ... </form>
<form method="put"> ... </form>
<form action="/search" method="get"> ... </form>
<form method="post"> ... </form>
form elementmethod attributeform element:
method