HTML and CSS Reference
In-Depth Information
What does the browser do?
Behind
the Scenes
First, as the browser renders the page, if it encounters an <a>
element, it takes the content of the element and displays it
as a clickable link.
1
<a href="elixir.html">elixirs</a>
Bot
h “elix
irs” a
nd “de
tailed
dire
ctions
” are
betwe
en the
open
ing an
d clos
ing <a
> tag
s,
so t
hey e
nd up
being
clickab
le
tex
t in t
he web
page
.
<a href="directions.html">detailed directions</a>
Use the <a> element to create a hypertext link to another web page.
The content of the <a> element becomes clickable in the web page.
The href attribute tells the browser the destination of the link.