This article will explain in detail about the use of hotspots in HTML. Xiaobian feels very practical, so share it for everyone to do a reference, I hope everyone can gain something after reading this article.
The mark is mainly used for the image map, and can be set in the image map (also known as hotspot) in the image map, so that when the user’s mouse moves to the specified role area, Auto link to a pre-set page. The basic syntax structure is as follows:
Class and ID: It is a type and ID number that specifies a hot spot, respectively.
Alt: Alternative text used to set hotspots.
HREF: Used to set the URL address linked to the hotspot.
Shape and Coords: It is two main parameters for setting the shape and size of the hotspot. Its basic usage is as follows:
The shape of the set hot spot is rectangular, the upper left corner coordinates are (x1, y1), the upper right corner vertex coordinate is (x2 Y2).The marker is divided in the image map, so its divided action area must be in the area of the image map, so it must be used with HTML before dividing the area with the
Indicates that the shape of the set hotspot is circular, the center coordinate is (x1, y1), the radius is R. Indicates that the shape of the set hotspot is a polygon, and the vertex coordinates are (x1, y1), (x2, y2), (x3, y3) ....... Note: X1, Y1, X2, Y2 The position of these points is based on the picture, not based on the size of the window.
sets the role of the image map, and sets the name for the specified image map, which is simple, that is,
marks must be between and
2, all of the hotspot regions in the same "image map" must range in the image map Inside, all
3, the coordinate format set in the mark set is set to the Shape parameter. The shape is supported in the shape of the region, avoiding the rectangular effect area set by the Shape parameter, and the phenomenon of setting the vertex coordinates of the polygon area in Cords appears.