HTML a shape Attribute

Example Use of the shape and coords attribute in a link, to create an image map: <object data="planets.gif" alt="Pl...


Use of the shape and coords attribute in a link, to create an image map:
<object data="planets.gif" alt="Planets" type="image/gif" usemap="#Map1">
  <map name="Map1" id="Map1">
  <a href="sun.htm" shape="rect" coords="0,0,82,126">The Sun</a>
  <a href="mercur.htm"shape="circle" coords="90,58,3">Mercury</a>
  <a href="venus.htm" shape="circle" coords="124,58,8">Venus</a>

Definition and Usage

The shape attribute is used together with the coords attribute to specify the size, shape, and placement of a link in an object or img element.
Note: The shape attribute of the a element is not supported by Internet Explorer, Chrome or Safari.
Tip: To create image maps that works in all browsers, look at the area element!


<a shape="link_shape">

Syntax Example

<a shape="rect">

Attribute Values

Value Description
default Specifies the entire region
rect Defines a rectangular region
circle Defines a circular region
poly Defines a polygonal region

Best Online Tutorials | Source codes | Programming Languages: HTML a shape Attribute
HTML a shape Attribute
Best Online Tutorials | Source codes | Programming Languages
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content