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
Here's what MDN has to say about it:
name
The name of the form. In HTML 4, its use is deprecated (id
should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5.
(from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-name)
I find it slightly confusing that specifies that it must be unique, non-empty string in HTML 5 when it was deprecated in HTML 4. (I'd guess that requirement only applies if the name
attribute is specified at all?). But I think it's safe to say that any purpose it once served has been superseded by the id
attribute.