attributes affect what happens when usersfollow hyperlinksp250
created using theap207
attributes may be used to indicate to the user
the likely nature of the target resource before the user follows the link.
elements that createhyperlinksp244
is to run the following steps:
1. If theap207
is notfully activep749
, then abort these steps.
2. If either theap207
element has adownloadp245
attribute and the algorithm is notallowed to show a popupp752
; or, if the user has not
indicated a specificbrowsing contextp748
for following the link, and the element'stargetp244
attribute is present, and applyingthe rules
for choosing a browsing context given a browsing context namep753
, using the value of thetargetp244
attribute as the browsing context
name, would result in there not being a chosen browsing context, then run these substeps:
1. If there is anentry settings objectp836
, throw an"InvalidAccessError"
2. Abort these steps without following the hyperlink.
3. If the target of theclick
event is animgp280
element with anismapp294
attribute specified, then server-side image map processing
must be performed, as follows:
1. Letxandybe zero.
2. If theclick
event was a real pointing-device-triggeredclick
event on theimgp280
element, then setxto the distance in
from the left edge of the image to the location of the click, and setyto the distance inCSS pixels
from the top
edge of the image to the location of the click.
3. Ifxis negative, setxto zero.
4. Ifyis negative, setyto zero.
5. Lethyperlink suffixbe a U+003F QUESTION MARK character, the value ofxexpressed as a base-ten integer usingASCII
, a U+002C COMMA character (,), and the value ofyexpressed as a base-ten integer usingASCII digitsp64
4. Finally, the user agent mustfollow the hyperlinkp250
ordownload the hyperlinkp251
created by theap207
element, as determined by the
attribute and any expressed user preference, passinghyperlink suffix, if the steps above defined it.
The IDL attributesdownload,ping,target,rel,hreflang, andtype, mustreflectp89
the respective content attributes of the same name.
The IDL attributerelListmustreflectp89
The IDL attributereferrerPolicymustreflectp89
content attribute,limited to only known valuesp90
ThetextIDL attribute, on getting, must return the same value as thetextContent
IDL attribute on the element, and on setting, must act as if the
IDL attribute on the element had been set to the new value.
If a site uses a consistent navigation toolbar on every page, then the link that would normally link to the page itself could be marked up
<li> <a href="/">Home</a> </li>
<li> <a href="/news">News</a> </li>
<li> <a>Examples</a> </li>
<li> <a href="/legal">Legal</a> </li>
Chrome for Android
UC Browser for