Latest

recent

HTML a name Attribute

Definition and Usage

The name attribute is an identification for the URL (web resource).
The name attribute can be used to link from one part of a page to another.
The href or the name attribute must be present in the <a> tag

Syntax

<a name="identifier">

Syntax Example

<a name="exampe_link">

Attribute Values

Value Description
identifier The name/identifier of the link.Naming rules:
  • Must begin with a letter A-Z or a-z
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")
  • Values are case-sensitive


Browser Support

The attribute is supported in all major browsers.

Example

Source Output
<p><a name="example">Example</a></p> Example
HTML a name Attribute Reviewed by 1000sourcecodes on 09:30 Rating: 5
Powered by Blogger.