DETAILS ABOUT IMAGE MAPS IN HTML WITH ITS SYNTAX AND EXAMPLE - Anna University Internal marks 2018

DETAILS ABOUT IMAGE MAPS IN HTML WITH ITS SYNTAX AND EXAMPLE

When a hyperlink is created on an image, clicking on any part of the image will lead to opening of the document specified in the <A HREF TAG>. Linked regions of an image map are called hot regions and each hot region is associated with a filename.html.

SYNTAX:
<map name="map'sname">

ATTRIBUTES OF IMAGE MAPS:

  • Coords
  • Rectangle
  • Polygon
  • Href

Coords:

Each of the above shapes takes different coordinates as parameters.

Rectangle:
4 coordinates (x1,y2,x3,y2)

Polygon:
3 or more coordinates.

Href:
Takes the name of the .html file that s linked to the particular area on the

SAMPLE CODING:

No comments:

Post a Comment