Why is this an issue?

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.

How to fix it

Add a method attribute to each <form> tag and use one of the HTML-valid values: get, post, or dialog.

Code examples

Noncompliant code example

<form action="/search">
  ...
</form>
<form method="put">
  ...
</form>

Compliant solution

<form action="/search" method="get">
  ...
</form>
<form method="post">
  ...
</form>

Resources

Documentation