|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
XHTML image map
I am having trouble validating this image map.
I believe the problem is in the "<map name="chimes">" section but there may be one more error as well. When I try to validate the page, my home page, I get 2 errors. Please help. <map name="chimes"> <img src="/images/chimes-300.jpg" usemap="#chimes" alt="heart and butterfly wind chime wedding favors" height="231" width="300" border="0" /> <area shape="circle" coords="73, 139, 67" href="/butterfly-wedding-favors.htm" title="butterfly wind chime wedding favors" alt="butterfly wedding favors" /> <area shape="circle" coords="230, 139, 67" href="/heart-wedding-favors.htm" title="heart wind chime wedding favors" alt="heart wedding favors" /> </map> I was a little hasty. Its not "name" it's "id" and the <map id="chimes"> goes after the image. checks out good.
__________________
One flaming hoop at a time. Last edited by tommr1 : October 25th, 2007 at 02:25 AM. |
|
#2
|
||||
|
||||
|
You need to include the id attribute in the <map> tag as well as the name attribute, eg <map id="chimes" name="chimes">.
According to the W3C specifications ( www.w3schools.com/tags/tag_map.asp ): id is required name is optional and used for backwards compatability Also, not sure if the <img> should be nested inside the map? |
|
#3
|
||||
|
||||
|
Quote:
Looks like you resolved it at the same time I answered ![]() Glad you sorted it. |
![]() |
| Viewing: SEO Chat Forums > Other > HTML Coding > XHTML image map |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|