HTML/CSSBeginner#html#forms

What is the difference between GET and POST form methods?

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.

Example
<form method="get" action="/search">
  <input name="q">
</form>
<!-- submits as /search?q=value -->

<form method="post" action="/login">...</form>

Related Questions

1
HTML/CSSBeginner#html#forms

What is the purpose of the <label> element and how should it be associated with inputs?

Open
2
HTML/CSSBeginner#html#tables

How do you build a table with a header, body, and footer?

Open
3
HTML/CSSIntermediate#html#tables

How do colspan and rowspan work in tables?

Open