<map> HTML Tag

In this article I will discuss the <map> HTML Tag.
  • 1900

The HTML map tag is used for defining an image map.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <p>

        Click on the star to watch it closer:</p>

    <img src="images/empty_star.png" width="150" height="150" alt="Books" usemap="#booksmap" />

    <map name="booksmap">

        <area shape="rect" coords="0,0,50,70" alt="asp_net" href="frame1.htm" />

    </map>

</body>

</html>


The code for frame1.htm that we call in previous code

 

<html>

<head>

    <title>frame1</title>

</head>

<body>

    <img src="images/empty_star.png" width="250" height="350" />

</body>

 

Output


starmap.jpg


When I click the star the frame1.htm page open that is

rr11.jpg


Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2019 DotNetHeaven. All rights reserved.