Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML a shape property

HTML shape property

HTML a Tag Reference HTML tag

Example

in Use shape and coords in an element to create an image map:

<

object

data

=

"

planets.gif

"

alt

=

"

Planets

"

type

=

"

image/gif

"

usemap

=

"

#Map1

"

<

map

name

=

"

Map1

"

<

a

href

=

"

sun.htm

"

shape

=

"

rect

"

coords

=

"

0,0,82,126

"

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

map

object

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently only Firefox and Opera support the shape property.


Definition and Usage

HTML5 no longer supports the The tag's shape property.

The shape property is used together with the coords property to specify the or size, shape, and position of the link in the element.

Tip:: To create an image map that works in all browsers, use the element!


Syntax

Attribute values

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

HTML a Tag Reference HTML tag