1name is the name that is used when the value is passed
2(in the url or in the posted data).
3id is used to uniquely identify the element for CSS styling and JavaScript.
4
5The id can be used as an anchor too.
6In the old days,
7<a name was used for that, but you should use the id for anchors too.
8 name is only to post form data.