chapter
hyperlinks and anchors
INTRODUCTION
Hyperlinks are basically
pointers to other information on World Wide Web. The anchor tag for hypertext
links is simple to add your already-formatted pages.
These are the color
attributes you can have within the body tag
itself to differentiate between the following:
Ø BGCOLOR: Indicates the background color.
Ø TEXT: color of text displayed.
Ø LINK: Color of hyperlink within the page.
Ø VLINK: Color of visited link.
Ø ALINK: Color of link when clicked on or
selected.
USING THE <A> TAG
The basic link for creating
hypertext and hypermedia links is the <A> or anchor tag. The tag is
container which requires an </A> to signal the end of the text , images
and html tags that are to be considered to be a part of hypertext link.
<A HREF= “URL”> name
of the address</A>
ATTRIBUTES OF THE <A> TAG
The attributes of <A>
tag are:
1) HREF(link to object)
2) NAME (link from object)
3) TITLE(title of document)
IMAGE AS HYPERLINK
To make an image as
hyperlink , you use the same principal as the previous links you had created
when a piece of text was activated. An image is linked as follows:
<IMG SRC= “img.jpg” >
title </A>
ADDING MUSIC USING EMBED TAG
If you have MIDI file that
you want to be played when a visitor clicks a link, put HTML code like the
following on your page:
<A HREF=
“hapbirth.mid”> Play background music</A>