0

What is the difference between name and ID?

6th Jan 2016, 5:06 PM
HECTOR ARTURO AZUZ SANCHEZ
HECTOR ARTURO AZUZ SANCHEZ - avatar
4 ответов
+ 4
name is for server-side scripts; id is usually for client-side javascript
8th Feb 2016, 7:53 AM
Tim Travers
+ 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
7th Jun 2016, 12:28 PM
Eric Shtivelberg
Eric Shtivelberg - avatar
- 1
follow
1st Aug 2016, 10:20 PM
ahmed mohamed mohamed mohamed marzook
ahmed mohamed mohamed mohamed marzook - avatar
- 1
The difference is that many people can have a same although two persons cannot have the same ID
4th Sep 2016, 7:10 PM
Marc Eteme
Marc Eteme - avatar