Image Maps



index
Disabled back button Next Section
printable version

Section 1: Overview

Sometimes it is handy to have different areas of an image act as hyperlinks.


An image map is an overlay for a graphic that assigns hyperlinks to specifically defined areas (hotspots) on the image.

Hence, you begin by specifying the image, but you must include a usemap attribute.

The <map> tag is next used to define a client-side image map.

Here is the image map code for the Level 0 DFD:

Section 2: Process

To create an image map for your DFD diagram, you first must have an image of your DFD. You can capture an image of each level of the DFD using a tool like the Windows Snipping Tool.

The easiest way to determine the coordinates of various points is to use an online tool like Image-Maps.com.

Section 3: Hotspot Shapes

Hotspots can be rectangular, circular, or irregularly shaped (called a poly hotspot).

The position of a rectangular hotspot is defined by two points: its upper-left and lower-right corners.

While you probably will have no need of circular and poly hotspots in the projects, they will be explained for completeness.

Section 4: More HTML Details

To construct an image map, start with opening and closing <map> tags.

Section 5: Resources