Name attribute
The HTML name attribute assigns the name used to identify a form control and its submitted value.
Pro ASP.NET Core 7, Tenth Edition
An HTML attribute that supplies the name used to identify an element's submitted value and bind it to request data.
- How it is used
- Uses form input names as keys that ASP.NET Core model binding matches to handler parameters, properties, and arrays.
- How deep it goes
- Works through explicit overrides, nested prefixes, and array indexes; does not explain model binder internals.
- Examples
- Tests a Razor Page form at /pages/form and array inputs at /pages/bindings.
- What you can do after
- Operate/configure ASP.NET Core form binding by choosing input names or a Bind prefix that matches the receiving data.
Read how Pro ASP.NET Core 7, Tenth Edition explains name attribute →
Build a Website with ChatGPT
The HTML name attribute assigns the field name used to identify a form control when its form is submitted.
- How it is used
- Identifies form-control fields when a browser submits an HTML form.
- How deep it goes
- Explains the submission role with field examples and distinguishes names from selected value attributes.
- Examples
- Uses event sign-up fields named name, email, skills, day, gift, and notify, plus a hidden _gotcha field.
- What you can do after
- Apply it by preserving meaningful name values so submitted form data identifies each control correctly.
Read how Build a Website with ChatGPT explains name attribute →
Related concepts
- form fieldused by · A form field is a user-interface control or component that represents data to be entered or selected in a form, often with associated rendering or validation behavior.
- model bindingconfigures · Model binding is the process of locating incoming data, converting it to appropriate types, and assigning it to application objects or handler parameters.
- Tag Helpersconfigured by · Tag Helpers are ASP.NET Core components that process HTML-like elements during Razor view or page rendering.
- asp-for attributeproduced by · The asp-for attribute is an ASP.NET Core Razor attribute that associates an HTML element with a model property for Tag Helper processing.
- attributekind of · An attribute is a named property, value, or piece of information associated with an entity, object, or program element.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

