Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
1400
The <area> Tag (XHTML Reference)
Introduction
The <area> tag is used to define a specific area in an
image. The main usage of an area is to define one image with many areas. Each
area can then have his own link to another page. Usually you can define only
one link for the complete image, but the area tag is especially meant to divide
an image in several parts so that you can use many links in one image. Just
imagine that you have a map imagine from your country and would like to divide
the image in several parts, so that the user can click on each city to get
information. The <area> tag is always nested in a <map> tag and is
never used standalone.
The above example created a map block called “MyRectArea”
with the area tags. In the map I defined the necessary area tags and links.
After that we closed the map tag and created an img tag with the image of a
rect and used the usemap attribute to assign the map to the image.
Output
Construction
Name:
Description:
alt
Tooltip when the mouse hovers over the area
accesskey
Keyboard shortcut for the link
coords
Coordinates of the area. Dependent on the shape attribute
href
Defines a link to the target
nohref
Defines no link for the area
shape
Can be either: rect, circle or poly
target
Target Frame to load the page into. Can be one of the
following:
_blank = new window
_self = same window
_parent = parent window
_top = url will be opened in full body of the window