What’s the point of the name attribute on an HTML form? As far as I can tell, you can’t read the form name on submission or do anything else with it. Does it serve a purpose?
What’s the point of the name attribute on an HTML form? As far as
Share
In short, and probably oversimplifying a bit: It is used instead of
idfor browsers that don’t understanddocument.getElementById.These days it serves no real purpose. It is a legacy from the early days of the browser wars before the use of
nameto describe how to send control values when a form is submitted andidto identify an element within the page was settled.