HTML map tag | Sakala Code
Sakala Code 1 year ago
sakalacode #html

HTML map tag

HTML <map> tag is used to define image map which is an image with user click area. Each clickable area is defined using the <area> tag which different the shape and co-ordinates of the clickable region.

HTML Image <map> tag syntax

<map name="..">
 <area shape=".." coords="..." alt="name" href="..">
</map>

HTML Image Map with Example

<!DOCTYPE html>
<html lang="en">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML Image Map with Example</title>
</head>
<body>

<h1>HTML Image Map with Example</h1>
<img src="SakalaCodemap.jpg" alt="World Map" usemap="#SakalaCodemap" width="600" height="400">
<map name="SakalaCodemap">
  <area shape="circle" coords="Enter_image_position" alt="name" href="https://sakalacode.com/">
  <area shape="rect" coords="Enter_image_position" alt="name" href="https://sakalacode.com/">
  <area shape="poly" coords="Enter_image_position" alt="name" href="https://sakalacode.com/">
</map>
</body>
</html>
0
302
HTML Summary Tag

HTML Summary Tag

1709870648.png
Sakala Code
1 year ago
HTML ruby tag

HTML ruby tag

1709870648.png
Sakala Code
1 year ago
Laravel Introduction

Laravel Introduction

1709870648.png
Sakala Code
1 year ago
Php Magic Constants Examples

Php Magic Constants Examples

1709870648.png
Sakala Code
1 year ago
HTML Quotes tag

HTML Quotes tag

1709870648.png
Sakala Code
1 year ago