The name attribute provides the variable name for a control element on a form.
<form>
...
<input type="text" name="fullname">
...
</form>
The variable name in this case will be "fullname". When a user enter the name, the variable will be associated with that value: "fullname=My+Name".
All form control elements (except submit and reset buttons) must have a name attribute so the form processing application can sort the information.