HTML5 elements id vs name attributes

This question already has an answer here:

  • Difference between id and name attributes in HTML 18 answers

  • 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

    上一篇: 尽管我传递了一个值,但GET参数为null

    下一篇: HTML5元素ID与名称属性