HTML tag
Example
A drop-down list with a name attribute:
Try it »
Browser support





All major browsers support the name attribute.
Definition and Usage
The name attribute specifies the name of the drop-down list.
The name attribute is used to reference the element in JavaScript, or to reference the form data after the form is submitted.
Differences between HTML 4.01 and HTML5
none.
Syntax
Attribute values
| Value | Description |
|---|---|
| text | The name of the drop-down list. |
HTML