0
What is the difference between name and ID?
4 Respuestas
+ 4
name is for server-side scripts; id is usually for client-side javascript
+ 1
The name is used for page anchors (#element_name) and for naming inputs when sending forms.
The ID is used to easily find an element on the page, be it for applying CSS styles on it or doing something with Javascript
- 1
follow
- 1
The difference is that many people can have a same although two persons cannot have the same ID