
Have you ever wanted to click on a country on a digital map of the world to learn more about it? Or maybe you've seen a picture of a computer that shows how pressing the keyboard brings you to one page and clicking the display sends you to another. This is where the HTML Map Tag comes in.
For students and new developers, learning how to use this tag is a great approach to make websites look more professional and interesting. You don't have to use a row of boring buttons; you may have your pictures do the work.
|
Shape |
Required Coordinates | Description |
|
rect |
x1, y1, x2, y2 | Defines a rectangle using top-left and bottom-right points. |
| circle | x, y, radius |
Defines a circle using the centre point and distance to the edge. |
|
poly |
x1, y1, x2, y2... |
Defines a custom shape by connecting multiple points. |
| default | None |
Covers the entire remaining area of the image. |