Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Clickable Images

  • Another cool trick you can do with images is to make them clickable. That is, you can put an anchor tag around them so that when the user moves their mouse over the image, they will be able to click on the image in order to go to some other page.

  • The process is exactly the same as for making text-based links except that you place the image where the text was.

  • In the following example, we make the icon clickable so that when the user clicks on it, they will be transported to the table of contents page for this tutorial. Remember that you can click on your browser's back button to return to this page.
<A HREF = "toc.html">
<IMG SRC	= "http://www.eff.org/asterix_icon.gif"
	alt	= Table of Contents
	height	= 64
	width	= 64
	></A>

  • Below we have added the above code to this page and made the clickable image for you to try out.
Table of Contents

  • Notice that the image above is surrounded by a box. This box is like the underlining of link text. It lets the user know that the image is clickable.

  • However, in many cases, you will not want the box around your image. If this is the case, you need only set the BORDER attribute of the IMG tag to "0". For example, we can turn the border in the above image off by using the following code: [1]
<A HREF = "toc.html">
<IMG SRC = "http://www.eff.org/asterix_icon.gif
  BORDER = "0"></A>

  • In this case, our clickable image would appear as below:

Additional Resources:

Exercise Six
Introduction to Web Design | Table of Contents
Image Placement and Alignment


Up to => Home / Authoring / HTML / Tutorial




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers