<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: David Atanda</title>
    <description>The latest articles on DEV Community by David Atanda (@atanda1).</description>
    <link>https://dev.to/atanda1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F620662%2Fa5fd9184-3166-4a11-a726-e8495953c080.jpeg</url>
      <title>DEV Community: David Atanda</title>
      <link>https://dev.to/atanda1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/atanda1"/>
    <language>en</language>
    <item>
      <title>Image maps</title>
      <dc:creator>David Atanda</dc:creator>
      <pubDate>Sun, 25 Apr 2021 15:34:39 +0000</pubDate>
      <link>https://dev.to/atanda1/image-maps-3h55</link>
      <guid>https://dev.to/atanda1/image-maps-3h55</guid>
      <description>&lt;p&gt;An image map is an image with specific clickable areas, and it’s defined with &lt;code&gt;map&lt;/code&gt; tag. These areas are set using the &lt;code&gt;&amp;lt;area&amp;gt;&lt;/code&gt; tag. Basically, this allows you to embed links in different parts of image that can lead to other pages, which is great for describing things within a picture.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shape&lt;/th&gt;
&lt;th&gt;Coordinates&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;rect&lt;/td&gt;
&lt;td&gt;left, top, right, bottom&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;circle&lt;/td&gt;
&lt;td&gt;center-x, center-y, radius&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;poly&lt;/td&gt;
&lt;td&gt;x1, y1, x2, y2, .….&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;fault&lt;/td&gt;
&lt;td&gt;Th entire region&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For example, let’s use Africa’s map:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;map name="africamap"&amp;gt;
          &amp;lt;area
            shape="poly"
            coords="414,289,412,263,422,248,419,233,430,212,446,209,459,215,488,217,510,213,529,210,539,222,543,234,527,254,517,269,507,287,469,281,479,296,476,311,499,313,440,302,433,291"
            target="_blank"
            alt="nigeria"
            href="https://en.wikipedia.org/wiki/Nigeria"
          /&amp;gt;
&amp;lt;/map&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mOkxjsnN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://paper-attachments.dropbox.com/s_BCEED88617712C77CAE5CD54DE11AC1E83C79089C594AA90B5E140237B54EFFC_1619364730460_Screenshot%2B307.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mOkxjsnN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://paper-attachments.dropbox.com/s_BCEED88617712C77CAE5CD54DE11AC1E83C79089C594AA90B5E140237B54EFFC_1619364730460_Screenshot%2B307.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can have this replicated for each country, as seen &lt;a href="https://clickable-areas-image.netlify.app/"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
