Page 139 - CA_165_V2.0_Flipbook
P. 139
<A> Tag
Type Function Attributes Contains Used Inside
Container tag Creates a href, target, TITLE Text or inline Typically placed within
hyperlink. elements. <BODY> tag..
External Linking
The External Linking links two different documents which are present in the main storage of server or
computer. User clicks on the link button, the document which is linked, gets opened. <A> tag which
stands for ‘Anchor’ is used to create the link in a document.
Syntax to use the <A> tag is as follows:
<A HREF= "Link Page URL" > Text </A>
The HREF is the attribute of the <A> tag that takes the URL or path of a web page to be opened when
user clicks on the link. HREF stands for Hypertext Reference.
For example:
<A HREF = "EXTERNAL LINKING2.HTML"> Objectives </A>
In the above example, file EXTERNAL LINKING2.HTML will be opened as soon as the user clicks on the text
‘Objectives’ in the window screen.
TITLE Attribute
The TITLE attribute is used to specify a title for the document to be linked. Any textual matter that is
enclosed within double quotes is set as the value of the TITLE attribute.
Do you know?
As soon as the cursor is placed over the linked button, the mouse pointer changes from ‘arrow’
to ‘hand’.
Many browsers display the title when the user places the cursor over the linked object. The title attribute
is useful for including some additional information about the source. Syntax to use the <A> tag is as
follows:
<A HREF= "Link Page URL" TITLE= "Text"> Text </A>
For example:
<A HREF = "EXTERNAL LINKING2.HTML" TITLE = " Donald Duck" > Text </A>
The following HTML code uses an anchor (<A>) tag to create an external link and display an image:
<HTML>
<HEAD>
<TITLE> External Linking</TITLE>
</HEAD>
<BODY BGCOLOR = "YELLOW">
<A HREF = "EXTERNAL LINKING.HTML" TITLE ="CLICK ON IMAGE TO VIEW NEXT PAGE">
More About HTML 137

