Name
HREF — NN n/a IE n/a HTML 4
Synopsis
HREF=”URI"Optional
According to the HTML 4.0 specification, the HREF
attribute is meant to offer a URL to a resource that can supply
“more information” about the SPAN
element’s content. No recommendation is provided as to whether
this URL should be rendered in any way (like the
HREF attribute of an A
element). Perhaps a future browser could use this URL to generate a
margin note or footnote in the form of a link. Several other
attributes clearly intend for the HREF
attribute’s URL to be accessible in some way by the user.
Example
<SPAN HREF="bibliogs/chap3.html"><A HREF="chap3.html">Chapter 3</A></SPAN>
Value
Any valid URL, including complete and relative URLs, anchors on the
same page (anchor names prefaced with the #
symbol), and the javascript: pseudo-URL in
scriptable browsers to trigger a script statement rather than
navigate to a destination.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access