About insert link in to images ???

HTML, PHP, JavaScript...ask your questions or post your tips here!
Locked
btgvnws
Posts: 63
Joined: Thu Feb 22, 2007 3:18 pm
Contact:

About insert link in to images ???

Post by btgvnws »

Hi all !
How to insert link in to images of code HTML (not use software) ?
Thanks !
echophp
Posts: 657
Joined: Sun Feb 11, 2007 9:07 am

Re: About insert link in to images ???

Post by echophp »

What do you mean?
btgvnws
Posts: 63
Joined: Thu Feb 22, 2007 3:18 pm
Contact:

Re: About insert link in to images ???

Post by btgvnws »

Ex: I insert www.echophp.com banner in to my site, when guest or mem click logo, link url go to echophp.com's page. I has use <a href="link"> before tag <img....> but logo show border. how to insert logo the same http://www.echophp.com/featured_clients.html
echophp
Posts: 657
Joined: Sun Feb 11, 2007 9:07 am

Re: About insert link in to images ???

Post by echophp »

Try to add the attribute bellow to remove the border

Code: Select all

border="0"
Hope it helps.
btgvnws
Posts: 63
Joined: Thu Feb 22, 2007 3:18 pm
Contact:

Re: About insert link in to images ???

Post by btgvnws »

Ok. Thanks admin so much !
marc8358
Posts: 15
Joined: Thu Jan 07, 2010 10:09 am

Re: About insert link in to images ???

Post by marc8358 »

Sorry,As a new programmer i can not say how to insert link to an images.
hernandez9039
Posts: 3
Joined: Fri Feb 12, 2010 12:29 pm

Re: About insert link in to images ???

Post by hernandez9039 »

Really wonderful explanation! You've explained the topic superb. Thank you very much for sharing.
henderson791
Posts: 5
Joined: Mon Mar 22, 2010 4:10 am

Re: About insert link in to images ???

Post by henderson791 »

Fantastic!!! thanks a lot
sshayndell12
Posts: 9
Joined: Sat Apr 17, 2010 2:29 am

Re: About insert link in to images ???

Post by sshayndell12 »

Well, that's good, but what's with the border around the image? Well, the border just seems to be added by default on most browsers. To get rid of it, add this command to the image tag:

border="0"

Here is an example:

<a href="http://www.newbusinessdirection.co.uk/">
<img src="next.jpg" border="0">
</a>
dillan598
Posts: 3
Joined: Mon Jun 21, 2010 12:06 pm

Re: About insert link in to images ???

Post by dillan598 »

<HTML>
<HEAD>
<TITLE>this is just a test</TITLE>
</HEAD>
<BODY>
<a href="whateverpage.htm"><img src="picturelink.gif" alt="hello" /></a>
</BODY>
</HTML>
williams8899
Posts: 1
Joined: Sat Jul 10, 2010 2:33 pm

Re: About insert link in to images ???

Post by williams8899 »

This way you can insert link in to images.
<HTML>
<HEAD>
<TITLE>this is just a test</TITLE>
</HEAD>
<BODY>
<a href="whateverpage.htm"><img src="picturelink.gif" alt="hello" /></a>
</BODY>
</HTML>
Locked