Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

จะระบุรูปภาพเป็นแผนผังรูปภาพฝั่งไคลเอ็นต์ใน HTML ได้อย่างไร


ใช้ usemap แอตทริบิวต์เพื่อระบุรูปภาพเป็นแผนผังรูปภาพฝั่งไคลเอ็นต์ใน HTML คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน usemap แอตทริบิวต์ −

ตัวอย่าง

<!DOCTYPE html>
<html>
   <head>
      <title>HTML map Tag</title>
   </head>
   <body>
      <img src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html"/>
      <!-- Create Mappings -->
      <map name = "html">
         <area shape = "circle" coords = "154,150,59" href = "about/about_team.htm"
         alt = "Team" target = "_self" />
      </map>
   </body>
</html>