PDA

View Full Version : Making Images A Link



go_flyers_89
04-03-2005, 11:02 AM
could someone please tell me the html code to make images into links

mwinter
04-03-2005, 11:08 AM
could someone please tell me the html code to make images into linksPlace the img element inside an a element:


<a href="http://www.example.com/"><img alt=""
src="http://www.example.com/example.jpeg"></a>As the image won't be purely decorative, you should place a textual replacement for it in the alt attribute which is currently empty. For example, if the image contains the text, "Home", that should be the value of the alt attribute.

Mike

go_flyers_89
04-03-2005, 01:59 PM
thanks for that :D