the anchor tag is utilized to create links


The Anchor tag is utilized to create links between distinct objects such as HTML pages, files, web sites etc.  This is introduced through the characters <A> and terminated through </A>. HREF is the most common attribute of the ANCHOR tag. It describe the destination of the link.

<HTML>

<HEAD>

<TITLE>ABC</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFFF">

Go to <A HREF="https://www.tutorsglobe.com/">TUTORSGLOBE!</A>

</BODY>

</HTML>

As illustrated in above code, the text "ABC" present between the <A> & </A> tags becomes the hyperlink. On clicking anyplace on this hyperlink, the browser would try to connect to the given URL and the website www.tutorsglobe.com in would open, if possible.  An email link may be specified in the similar way. We just ought to specify the email address rather than a page address as the value of HREF as illustrated in the following code.  By clicking on the link, the default mail program onto the user's computer opens with a "To:" address as indicated in the hyperlink.  Then you can type your message and send e-mail to that address.

<BODY BGCOLOR="#FFFFFF">

Send me <A HREF="mailto:[email protected]">mail</A>

</BODY>

This is also possible to make an image a link if wanted. It is done using the <IMG> tag. Assume the following example.

<HTML>

<HEAD>

<TITLE>ABC</TITLE>

</HEAD>

<BODY BGCOLOR="#FFFFFF">

Go to <A HREF="https://tutorsglobe.com/"><IMG SRC="image.gif" WIDTH=130

HEIGHT=101></A>

</BODY>

</HTML>

So in the instance shown in above code, the image will be becomes the link. While the user clicks on the image, the web site https://www.tutorsglobe.com opens up, if possible.

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: the anchor tag is utilized to create links
Reference No:- TGS0416287

Expected delivery within 24 Hours