|
Anchor element is used to Link a document
with an external element. "Anchor" is abbreviated
and used as <A>. The <A>
tag requires the HREF attribute and HREF requires that a URL
be specified after an "=" (equal) sign. Although it
is not a compulsory rule to enclose the URL within quotes, but
it is always good to do that. You can link within the document
also with the <A> tag.
An <A> tag should look like this:
<A HREF="http://www.layoutgalaxy.com/">Layout
Galaxy</A>
Most of the time you need to use the Hyperlink
REFerence(a reference to a Link's address). You can link to
any type of file on the web, including images, sounds and
movies. Many types of URLs are used in the HREF tag:"
ftp://", "http://", "gopher://",
"mailto:", "news:", "telnet:", "file://".
The NAME attribute of the Anchor element
labels a section of an HTML document with specific reference
name. The name attribute allows you to link directly to a
section of the document, (instead of links always leading
to the top of a document). It is done in a two step process:
First, you must edit the target document and give a name to
the section of it where you want the link to take you.
Syntax:
<A NAME="section1">This
is the section</A>
Example:
<PRE><A NAME="link">The</A>
first part lets you know the contents of
the full CBT. It covers the lessons, the concept screens and
all the headings of the chapters covered in a hierarchial
manner. The introductory part is taken first to familiarise
you with the concepts. Then "Exercises" are given
for you to have the practical experience of the topics.
</pre> <hr> </BODY> </HTML>
This attribute of the <LINK>
marks relationship between the current document and the resource
in the link and is placed in the head section. This type of
anchor does not create a link to any particular URL; you may
have to use the HREF attribute.
Syntax:
<LINK REL="relationship-name" HREF="URL">
The <REV>
attribute indicates a reverse relationship. The referenced
document has the indicated relationship to the current document.
This is placed in the head section.
Syntax:
<LINK REV="relationship-name" HREF="[URL]">
The target attribute is normally used with
frames. When you specify a TARGET for your links, you indicate
the name of a window in which the linked page appears. The
new window, with the new page, functions like a normal copy
of a browser in all respect.
Example:
<A HREF="http://www.layoutgalaxy.com/"
TARGET="window2">The Training
In HTML 4.0 almost every tag can take a
TITLE attribute. They are called as advisory titles and help
provide extra information about the elements. One anchor attribute
that expands on the information available about a link is the TITLE attribute.
Syntax:
<A NAME="section1">This
is the section</A>
In this Exercise you will know how to format
the text and give color.
After adding the basic tags, we have added
the color for the background as "bisque". We have
to be careful to see the default color setting of the browser,
since that will take precedence.

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.
|
|
|