Posted by: p3ppi May 8 2022, 07:24 PM
Hello,
the website ipchicken.com has the the following line in its source code:
CODE
<img src="images/main_03.gif" width="577" height="126" usemap="#Map" border="0">
But nowhere in the source code is a definition of #Map. The links on the image do work though.
Where else can the #Map be defined other than the source code?
thank you for your help =)
regards
p3ppi
Posted by: pandy May 8 2022, 07:42 PM
QUOTE(p3ppi @ May 9 2022, 02:24 AM)
But nowhere in the source code is a definition of #Map. The links on the image do work though.
Yes, it's there. At line 76 or thereabout.
HTML
<map name="Map">
<area shape="rect" coords="373,71,418,94" href="learn.html">
<area shape="rect" coords="136,72,223,94" href="https://www.ipchicken.com">
</map>
Maybe you looked for #Map with the hash sign? The hash is only used in the usemap attribute, not in the target name. The construct with the hash is called a fragment identifier, same as you use with an ordinary link to specific spot in a page.
HTML
<a href="#spot">Go to a specific spot in the page</a>
....
<p id="spot">
Blah blah blah...</p>