It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Unlike id, name of a class can be used with multiple elements in an HTML document. Style HTMLFormElement.elements Read only A HTMLFormControlsCollection holding all form controls belonging to this form element. It is used to reference the form-data after submitting the form or to reference the element in a JavaScript. Single-line text input controls. The name attribute was originally used to identify images, but it has been deprecated since HTML 4.0. Some more information Hereand Here. It can be more or less anything you like. 3.Autocomplete attribute is a standard(by default). The HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. Definition and Usage The name attribute specifies the name of a form. Thus, it is indispensable in order to make the value of the control submitted to server-side processing. As the name suggests, form’s autocomplete attribute prompts auto completeness for various input elements present inside the form. submit: It specifies a submit button to submit the form to server. Type Description; text: It defines a one-line text input field. Supported tags: button; fieldset; form; iframe; input; map; meta; object; output; param; select; textarea; Exapmle: HTML button name Attribute Unlike id, name of a class can be used with multiple elements in an HTML document. The HTML
name Attribute is used to specify the name of a form Element. Most Commonly Used HTML Attributes. The HTML