SQL PHP HTML ASP JavaScript articles and free scripts to download
HTML Web Form

Using Images as Hyperlinks

Images can also act as hyperlinks just as normal text. Just as text is made as a hotspot so as an image. i.e, by enclosing the <img> tag wtihin the <a> ... </a> tags.

Example:

<a href="targetpg.htm"><img src="target.gif"></a>

Note:

Here the image acts as a hotspot and navigates to the file targetpg.htm
Just as an underline appears on the text if we enclose text within <a> ... </a> tags, a border will appear for the image that has been placed with in <a> ... </a> tags. You can remove the border by setting the border attribute of <img> tag to 0.

<a href="targetpg.htm"><img src="target.gif" border="0"></a>

You can click the image below to visit HTML tutorial home page.

HTML tutorials

Submitting a form using Image as button

Be the first to post comment on this article :


Google+
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



Join Our Email List
Email:  
For Email Newsletters you can trust
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer