Set an image as a server-side image map in HTML?


Use the ismap attribute in HTML to set the image as a server-side image map in HTML.

Example

You can try to run the following code to implement the ismap attribute −

<!DOCTYPE html>
<html>
   <body>
      <a href="">
         <img src = "https://www.tutorialspoint.com/assets/videotutorials/courses/android_penetration_testing/380_course_203_image.jpg"
            alt="Android Penetration Testing"
            width = "300" height = "250" ismap>
      </a>
      <p>On clicking the coordinates is sent to the server as a URL query string.</p>
   </body>
</html>

Updated on: 03-Mar-2020

584 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements