📜  name和id html代码示例之间的区别

📅  最后修改于: 2022-03-11 14:53:15.105000             🧑  作者: Mango

代码示例1
The name attribute is used when sending data in a form submission.
Different controls respond differently. For example, you may have several radio
buttons with different id attributes, but the same name. When submitted, 
there is just the one value in the response - the radio button you selected.