You are here:  NetStrider » Tutorials » HTMLRef » Commands » MAP «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <MAP> Command next

Command Syntax:

<MAP command parameters></MAP>

The <MAP> command is used to establish a clickable image map within a displayed inline image and to associate URLs with defined image areas.

See:  <AREA>, <IMG>

Command Parameters: 
name="map name"

Defines the map name which will be associated with this image map in an associated usemap="#map name" command parameter within a subsequent inline image placement <IMG> command.

Example:
<MAP name="htmlref">
  <AREA shape="rect"   coords="1,1,10,20"       href="index.html">
  <AREA shape="circle" coords="50,50,10"        href="toc.html">
  <AREA shape="poly"   coords="20,1,40,1,30,20" href="banner.html">
</MAP>
<IMG src="htmlref.jpg" usemap="#htmlref">

The statements above define a client-side image map named htmlref.  This map contains three defined image areas.  Shape, coordinates and hypertext reference links are established for each defined image area.  The image map is referenced in the placed image through the usemap= command parameter within the inline image command <IMG> command.  Note that the image map must be defined before the inline image is placed in order for the browser to reference it.
 

Return to Section M:R


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz