HTML5 elements id vs name attributes
This question already has an answer here:
Sometimes, both can be used for the same purpose. But, Normally id attribute is used to call that element. and name attribute is used when you send a data to some other page from a form through post or get method, then we can access to the data of that element through that name.
链接地址: http://www.djcxy.com/p/88038.html下一篇: HTML5元素ID与名称属性