Question: I found that SO put the search input inside a form tag, and i found some other websites do the same, such as google, they put the search input and search button inside this:

```
<form action="/search" method="get" name="gs" id="tsf">

```

I want to just know the benefits of doing so, because it seems common and I miss it.

Answer: 
The `action` attribute of the `<form>` element tells the browser which URL on the server is responsible for handling the form.
The search input is just a generic text box, and the only way to get the information (what you're searching for) from the page to the server is to send it via a form.

www.w3schools.com and others have some great tutorials on building forms.

Theoretically you can use JavaScript to submit the information without explicitly typing out a form, but if the client has JavaScript disabled, it will never work - whereas using the HTML will work all the time