Answers for "show map image"

0

Image Map

<img src="workplace.jpg" alt="Workplace" usemap="#workmap">


<map name="workmap">
  <area shape="rect" coords="34,44,270,350" 
  alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" 
  alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" 
  alt="Coffee" href="coffee.htm">
</map>
Posted by: Guest on September-16-2021
1

html image map

the map defines what url will be assigned to that shape over the the image

<style>
img {
    display: block;
    margin: 0 auto;
    width: 260px;
    height: 248px;
}
  </style>
  <map name="infographic">
    <area shape="rect" coords="184,6,253,27"
          href="https://mozilla.org"
          target="_blank" alt="Mozilla" />
    <area shape="circle" coords="130,136,60"
          href="https://developer.mozilla.org/"
          target="_blank" alt="MDN" />
    <area shape="poly" coords="130,6,253,96,223,106,130,39"
          href="https://developer.mozilla.org/docs/Web/Guide/Graphics"
          target="_blank" alt="Graphics" />
    <area shape="poly" coords="253,96,207,241,189,217,223,103"
          href="https://developer.mozilla.org/docs/Web/HTML"
          target="_blank" alt="HTML" />
    <area shape="poly" coords="207,241,54,241,72,217,189,217"
          href="https://developer.mozilla.org/docs/Web/JavaScript"
          target="_blank" alt="JavaScript" />
    <area shape="poly" coords="54,241,6,97,36,107,72,217"
          href="https://developer.mozilla.org/docs/Web/API"
          target="_blank" alt="Web APIs" />
    <area shape="poly" coords="6,97,130,6,130,39,36,107"
          href="https://developer.mozilla.org/docs/Web/CSS"
          target="_blank" alt="CSS" />
</map>
<img usemap="#infographic" src="https://interactive-examples.mdn.mozilla.net/media/examples/mdn-info.png" alt="MDN infographic" />
Posted by: Guest on November-18-2020

Browse Popular Code Answers by Language