1
HTML/CSSBeginner#html#forms
GET appends form data to the URL as query parameters, is idempotent, cacheable, and has length limits — good for search/filter forms. POST sends data in the request body, isn't cached or bookmarked, and is used for creating/updating data.
<form method="get" action="/search"> <input name="q"> </form> <!-- submits as /search?q=value --> <form method="post" action="/login">...</form>