HTML and CSS Reference
In-Depth Information Allowed content
Between the <a> tag and its required end tag, you may put only regular
text, inline elements, line breaks, and images. The browser renders all
of these elements normally, but with the addition of some special effects
to indicate that they are hyperlinks to other documents. For instance,
the popular graphical browsers typically underline and color the text and
draw a colored border around images that are enclosed by <a> tags. The href attribute
Use the href attribute to specify the URL of the target of a hyperlink.
Its value is any valid document URL, absolute or relative, including a
fragment identifier or a JavaScript code fragment. If the user selects the
contents of the <a> tag, the browser will attempt to retrieve and display
the document indicated by the URL specified by the href attribute or ex-
ecute the list of JavaScript expressions, methods, and functions.[ Refer-
encing Documents: The URL, 6.2 ]
A simple <a> tag that references another document might be:
The <a href="http:growing_season.html">growing
season</a> for kumquats in the Northeast.
which appears in the browser display shown in Figure 6-1 .
Figure 6-1. Hyperlink to another HTML document
Search WWH ::

Custom Search