![]() |
VOOZH | about |
The HTML anchor name attribute is used to specify the name for an <a> element. It is used to reference the form data after submitting the form or to reference the element in JavaScript.
Note: The <a> name attribute is not supported by HTML5.
<a name="name">
Attribute Value | Description |
|---|---|
name | It describes the name of the <a> element. |
Example: This example illustrates the use of an anchor name attribute in an HTML document.
Output:
👁 Image