<area>

<area> defines a region in an image map. With href, it becomes a link and needs alt text describing the destination. It is void and must have a map ancestor.

Two linked regions

The left and right halves link to named sections. The ordinary links below give readers another way to navigate.

Shapes and coordinates

shape="rect" uses x1,y1,x2,y2; circle uses center-x,center-y,radius; poly uses a series of x/y pairs. default covers the image area without coordinates. “Image-based mapping” is not another shape value.

Coordinates use CSS pixels. Resizing the image with CSS may misalign fixed regions, so keep this exercise’s geometry fixed and plan a responsive alternative for a real interface. Overlapping regions and small targets require careful testing.

Area supports link attributes such as target and rel. With href, supply alt describing the choice, not just “left rectangle.” Without href, the area does not provide ordinary link behavior. Keep useful image alt and visible text alternatives.

Activate a region with the keyboard and verify its destination. Use a links instead when the content does not require clickable image geometry.

Sources and browser support

MDN: area describes the syntax and links to the specification and compatibility data. Check individual values in that table when supporting older browsers.