/    Sign up×
Community /Pin to ProfileBookmark

Link in <IMG> tag verses Link in <MAP> tag

Hi guys and gals,
Just curious about this one…

What’s the difference between implementing a link in an image tag verses implementing a link in an image map tag.

Does it make a difference?

Pros and Cons?

Thanks

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326Dec 08.2003 — If an image in an anchor will do then an image map is a waste of time and bandwidth.
Copy linkTweet thisAlerts:
@jochemDec 08.2003 — Use a link in a <map> tag if your image contains several areas that should link to something. In that case you'll have to add the coordinates of the link areas. If your image is just one link, simply use the <img> tag.&lt;img src="YourImage.gif" border="0" usemap="#Links"&gt;
&lt;map name="Links"&gt;
&lt;area shape="rect" coords="0,0,52,10" href="Page01.htm"&gt;
&lt;area shape="rect" coords="54,0,120,10" href="Page02.htm"&gt;
&lt;/map&gt;
Cheers, Jochem ?
×

Success!

Help @learninghtml spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...