Search code examples
xhtmlimagemap

W3C XHTML 1.0 Strict Compliant Image Map?


Is there anyway to make an image map W3C XHTML 1.0 Strict compliant?

I'm working on this page and when I click my W3C Validator badge I receive a validation error.

There is no attribute "type", <area type="rect" coords="21,19,155,76" ...

Are there any tags for the XHTML 1.0 Strict compliant that have replaced the image map <map> and <area> tags?

I did go to the w3c and look at their specification, and the only thing I could find was <nl> tag with nested <li>, but I tried them and they did not work in any of the browsers that I tried.


Solution

  • Success!

    I found the answer thanks to someone at Ozone Asylum who directed me to a, A List Apart article on css sprites. You can do the same thing it's just not as strait forward. (But it can be XHTML Compliant!)

    I actually did one here, just click on the big red arrow to see the example...

    To be fair though I'll admit, it looks a little cheesy...client's choice of photo, not mine!