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

วิธีระบุภาพเป็น client-side image-map ใน HTML


ใช้แอตทริบิวต์ usemap เพื่อระบุภาพเป็น client-side image-map ใน HTML

ตัวอย่าง

<!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>