HTML and CSS Reference
In-Depth Information
Creating a single web page is an important step in building a website, but we need more than
one page to complete the website, and these pages will need to be connected so a visitor can
easily jump from one page to another via links. Furthermore, we also want to create connec-
tions to web pages on other websites.
All links, officially called hyperlinks, are managed through the so-called anchor element,
<a>Link to page</a>
The <a> element has no function by itself. To be a fully functioning link, it must have a des-
tination to specify what happens when the visitor clicks the link. The most common links
load a new page, but they can also show an image, play a sound or movie, download files,
open a newsgroup, send an e-mail message, run a CGI program, and more. To define a des-
tination, we extend the <a> element with the href attribute, which is shorthand for “hypertext
reference,” and define a URL. By default the browser displays text links as blue underlined
<a href="page.html">Link to page</a>
Search WWH ::

Custom Search