How to use < img > tag with ismap attribute in HTML ? with Example

 How to use < img > tag with ismap attribute in HTML ? with Example


The ismap attribute is a boolean attributeSpecifies an image as a server-side image map When present, it specifies that the image is part of a server-side image map (an image map is an image with clickable areas)



Example of ismap attribute of <img> tag in HTML

<html>

<body>


<h1>The img ismap attribute</h1>


<a href="/respond.php">

  <img src="thinkforu.png" alt="thinkforu.org" 

width="112" height="122" ismap>

</a>

<p>Click the image, and the click coordinates will be sent to the server as a URL query string.</p>


</body>

</html>


O/p:Example after clicking on image [ 100,23 ] this is the string value we got after clicking on Image which is present on front end .

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Smart contract code for Anyone can send coins to each other without a need for registering with a username and password with help of Ethereum keypair

Tag is used to create inline frame ?

How to use referrerpolicy Attribute value (strict-origin ) with < iframe > tag in HTML ? with example

Difference between Public vs Internal vs Private state variables in solidity programming langauge with example ?