The HTML Attribute reference

"shape" - html Attribute

  • For use with client-side image map.
  • Specifies the shape of a region.

Value(s): default, rect, circle or poly

Possible attribute, shape, values for this element:
Attribute value description
default Specifies the entire region.
rect Define a rectangular region.
circle Define a circular region.
poly Define a polygonal region.

Attribute "shape" example:
    <object data="images/TheSun.png"
            title="The Sun image"  usemap="#sunmap">
      <map name="sunmap">
        <a  shape="circle" 
        onclick="alert('You clicked on the sun');">Sun</a>
    <br/>Remember: This will not work in Internet Explorer.
Used in the element(s):
Elements Description
a The A element denotes an anchor; a hypertext link or the destination of a link.
area This element defines a map region on a client-side image.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.