|
While
you are designing your page, you can create links
that points you to other pages in your website or
other websites. Usually, these links will appear
as blue and underlined text. When the visitors
will click on them, they will be transferred to
the targeted page.
Creating
a link in your web page is done by <a> tag
(anchor):
<a
href=URL>Text to
be displayed that will point to URL</a>
Example:
<a
href=http://www.yahoo.com>Click
Here to visit Yahoo!</a>
Click Here to visit
Yahoo!
●
Linking an image:
Linking
an image is similar to a text linking and is done
by <a> tag: <a href=”URL”><img
src=”Image
URL”></a>
Example:
<a
href="yahoo.com"><imgsrc="yahoo.com/logo.gif"></a>
●
Linking an E-mail address:
You
can link a text to an email address by simply
adding “mailto” before the email address. When
visitors click on the link, they will be
transferred to their default email client.
<a
href=mailto:email@address>Text
to be displayed</a>
Example:
<a
href=mailto:amailto:admin@htmlfiles.net>Click
to Mail me!</a>
Click to Mail
me!
|