Detailed explanation of HTML area tag

Detailed explanation of HTML area tag

The <area> tag defines an area in an image map (note: an image map is an image with clickable areas).

The area element is always nested within a <map> tag.

Note: The usemap attribute in the <img> tag is associated with the <map> element name attribute to create a link between the image and the map. The usemap attribute in <img> can reference either the id or name attribute in <map> (determined by the browser), so we need to add both id and name attributes to <map>.

Property Value:

href : Click the link to jump to the area. alt: The message displayed when the image cannot be displayed normally.

shape & coords:

1. Distance shape: (the coordinates of the upper left vertex are (x1, y1), and the coordinates of the lower right vertex are (x2, y2))

<area shape="rect" coords="x1,y1,x2,y2" href=url>

2. Circle: (center coordinates are (X1, y1), radius is r)

<area shape="circle" coords="x1,y1,r" href=url>

3. Polygon: (the coordinates of each vertex are (x1, y1), (x2, y2), (x3, y3)...)

 <area shape="poly" coords="x1,y1,x2,y2 ......" href=url>

Summarize

The above is a detailed explanation of the html area tag introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Examples of two ways to implement a horizontal scroll bar

>>:  Install .NET 6.0 in CentOS system using cloud server

Recommend

Explanation on whether to choose paging or loading in interactive design

The author of this article @子木yoyo posted it on hi...

Tutorial diagram of installing CentOS and Qt in Vmware virtual machine

Vmware Installation Installing Packages Download ...

Ubuntu Server Installation Tutorial in Vmware

This article shares with you the Ubuntu server ve...

How to enable MySQL remote connection

For security reasons, MySql-Server only allows th...

Sample code for implementing DIV suspension with pure CSS (fixed position)

The DIV floating effect (fixed position) is imple...

How to configure VMware virtual machine NAT mode

This article describes the VMware virtual machine...

Is the tag li a block-level element?

Why can it set the height, but unlike elements lik...

CentOS6.8 Chinese/English environment switching tutorial diagram

1. Introduction People who are not used to Englis...

Example code for implementing equal width layout in multiple ways using CSS

The equal-width layout described in this article ...

Vue folding display multi-line text component implementation code

Folding display multi-line text component Fold an...

A detailed discussion of components in Vue

Table of contents 1. Component Registration 2. Us...

How to migrate sqlite to mysql script

Without further ado, I will post the code for you...

Solution to Linux QT Kit missing and Version empty problem

Currently encountering such a problem My situatio...

Install Docker environment in Linux environment (no pitfalls)

Table of contents Installation Prerequisites Step...