If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
Avoid <a name/> and <a id/> without href, now obsolete
The <a name/> or <a id/> without the href
attribute no longer defines an anchor that can be used as the target of a hypertext link. When the href
attribute is not coded on the <a> tag, it defines a placeholder link, with a target that can later be specified with dynamic script code.
See Changes to the <a> Tag in HTML for more informaiton.
To create a placemark (anchor) for the target of a hypertext link, code an id
global attribute on any HTML tag at the target location.
For backward compatibility, most browsers will treat the name attribute on elements where it is not supposed to be code as if it were an id
attribute. Since the value of the id
attribute must be unique, the same value should never be used for any other id
or name
attribute within the same document.
See id
global attribute for more information on creating a placemark (anchor).