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.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.