Home > Web Front-end > HTML Tutorial > Detailed introduction and usage examples of map tag parameters_HTML/Xhtml_Web page production

Detailed introduction and usage examples of map tag parameters_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:39:42
Original
1578 people have browsed it

The map tag must appear in pairs, that is,

....

At the same time, map must be used in conjunction with area.

The usermap attribute value in the img tag must be exactly the same as the id and name values ​​in the map tag.

area tag: defines the click area of ​​the image. area is a single tag, not paired.

Attributes:

accesskey shortcut key

alt image prompt text

coords coordinates of the graphics defining and clicking the area

href link address

nohref The area that can be excluded by clicking on the image. When there is no href, you need to use nohref

shape The shape of the clickable area

tabindex tab Key traversal

target link target

Code example:

Copy code
The code is as follows: