This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <address> Tag
The XHTML <abbr> and <acronym> Tags
The XHTML <a> Tag
Wrapping several generated XHTML pages inside one reusable XHTML frame
<< XALAN
XML DOM >>

By :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.

Example

<map name="MyRectArea">

<area shape="rect" coords="0,0,84,72" href="http://www.topxml.com/" alt="Link One">

<area shape="rect" coords="92,0,172,72" href="http://www.topxml.com/" alt="Link two">

<area shape="rect" coords="0,79,85,146" href="http://www.topxml.com/" alt="Link three">

<area shape="rect" coords="92,79,172,146" href="http://www.topxml.com/" alt="Link four">

</map>

<img src="area.jpg" usemap="#MyRectArea" border="0">

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


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP