Since there is things like BEM in naming conventions for HTML class attributes, does the
name attribute have anything of that sort?
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
Despite that there are cautions offered by StackExchange users:
- According to specs is case sensitive, but most modern browsers don't seem to follow this.
w3schools - "HTML Forms" cautions:
The Name Attribute
Each input field must have a name attribute to be submitted.
If the name attribute is omitted, the data of that input field will not be sent at all.
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.
Mozilla.Org also refers you to: HTML - Living Standard — Last Updated 21 August 2018
"The name attribute represents the form's name within the forms collection. The value must not be the empty string, and the value must be unique amongst the form elements in the forms collection that it is in, if any.".
You probably want all lowercase with each word (if there's more than one) separated by a dash (rather than camelCase).