Saturday, October 30, 2010

HTML image as button

Images are important part of any web pages, sometimes you need images as button means when someone clicks on it move to some other page (image as link). 

What to do?

simply use HTML anchor tag with img tag, a combination of <a> and <img> tag creates image as button.

Example:

<a href="http://www.onlinetut.com"><img src="

http://www.onlinetut.com/tutorial/images/favourite.gif

" height="100" width="100"/></a>


You can edit and test this code :



Sourece:


No comments:

Post a Comment