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

Attribute "shape" example:
<html>
  <body>
    <object data="images/TheSun.png"
            title="The Sun image"  usemap="#sunmap">
      <map name="sunmap">
        <a  shape="circle" 
        coords="182,117,57"
        onclick="alert('You clicked on the sun');">Sun</a>
      </map>
    </object>
    <br/>Remember: This will not work in Internet Explorer.
  </body>
</html>
Used in the element(s):
Elements Description
a The A element denotes an anchor; a hypertext link or the destination of a link.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.
area This element defines a map region on a client-side image.
Possible values:
Attribute value description
default Specifies the entire region.
rect Define a rectangular region.
circle Define a circular region.
poly Define a polygonal region.

© 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.