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.
How else would you transmit the search term to the server? The reason the input in inside a form tag is so that the browser can POST the value to the server for processing.

**Edit:** In order to understand better I would suggest that you read [HTML Forms and Input](http://www.w3schools.com/html/html_forms.asp).