Forms & Controls

method="get"

Build a form with the HTML form generator

Serializes successful form controls into the destination URL query. Use for retrieval and shareable searches, not state-changing operations or secrets that should not enter URLs. Form submission method; formmethod on a submitter can override it. Missing or invalid method defaults to get. Non-dialog examples require a real server endpoint for meaningful submission.

Formal Syntax & Structure

html syntaxhtml
method="get"

Parameters & Attributes

NameTypeDescription
methodkeywordSerializes successful form controls into the destination URL query. Use for retrieval and shareable searches, not state-changing operations or secrets that should not enter URLs.

Working Example

Example Snippethtml
<form method="get" action="/search">  <label>    Query    <input name="q">  </label>  <button>Submit</button></form>
HTML Reference