Importance of form tag

Apart from that, as we all know, the form tag is a container that contains buttons, checkboxes, and more. Html form enables us to enter information and submit it to the server.
But which server is going to post the data?
The answer to the above question is the two most important attributes of form tags, and these are:
The action and the method attribute.
The action attribute tells the web browser where to send the information (or on which server to post the data). The action attribute naturally contains the URL. The URL may be absolute or relative.
For example, in the Bing search engine, the code of the form tag is shown below,
  1. <form action="http://www.bing.com/search">
  2. <input name="s" type="text" />
  3. <input type="submit" value="Search!" />
  4. </form>
In the above code, you might think that form tag does not contain any method attribute, so then how it is going to know what type of method attribute touse?
To understand this we need to understand some important concepts about form tag:
Hope this blog helped you understand "Form tag."