Support for image maps in Firefox, Chrome, and other browsers

Are image cards supported in chrome and firefox? w3schools seem to suggest that they be .

Given this, why is the following HTML not working? (The image is displayed, but the links do not work - it works correctly in IE)

<img src="Images/backgroundFinal.png" usemap="#mainImageMap" alt="MainBackground" style="border: none;" /> <map id="mainImageMap"> <area shape="rect" alt="Home Page" title="Home Page" coords="309,198,413,223" href="Default.aspx" target="" /> <area shape="rect" alt="About me" title="About me" coords="245,334,319,353" href="About.aspx" target="" /> <area shape="rect" alt="Gallery" title="Gallery" coords="437,271,497,300" href="Gallery.aspx" target="" /> <area shape="rect" alt="Tattoo" title="Tattoo" coords="249,478,307,503" href="Tattoo.aspx" target="" /> <area shape="rect" alt="Contacts" title="Contacts" coords="395,521,464,544" href="Contact.aspx" target="" /> </map> 
+8
html standards firefox google-chrome
source share
1 answer

Try changing <map id="mainImageMap"> to <map name="mainImageMap"> . You can save id if necessary, but just make sure there is a name attribute.

+22
source share

All Articles