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.
I understood the reason, which is very simple:

instead of putting a big general form tag for all the page, these websites just put form around the parts which will go back to the server, but why not put everything inside a form, that what i am trying to understand now.