![]() |
VOOZH | about |
The HTML name attribute labels elements, notably form inputs, identifying them for data submission. It's crucial for form processing and is often used in JavaScript DOM manipulation. Unique within a form.
Note: This attribute has been DEPRECATED and is no longer recommended.
Supported tags:
| Element | Description |
|---|---|
| button | Represents a clickable button. |
| fieldset | Groups related form elements. |
| form | Container for form controls. |
| iframe | Embeds another HTML page. |
| input | Accepts user input. |
| map | Defines an image map. |
| meta | Provides meta-information. |
| object | Embeds external content. |
| output | Displays calculation results. |
| param | Provides parameters for objects. |
| select | Creates a dropdown list. |
| textarea | Multiline text input area. |
| keygen | Generates cryptographic keys. |
Example 1: In this example we are displays GeeksforGeeks heading, form with username and password inputs, and submit button. Demonstrates the use of the button's name attribute.
Output:
Example 2: In this example the HTML select element with name attribute defines a dropdown list. Each option has a value. Important for form submission and JavaScript DOM manipulation.
Output:
Supported Browsers: The browsers supported by HTML | name Attribute are listed below: