-1

I have a jquery popup which fires different popups (DIVs) on clicking different links. It is working fine. But now I want it for image map. But it seems that "rel" attribute is not working for image map. See the Fiddle - http://fiddle.jshell.net/B6A38/

Though W3schools says that it is fine to use "rel" with image map - http://www.w3schools.com/TAGS/att_area_rel.asp

Please help!

user3405976
  • 51
  • 1
  • 2
  • 8

1 Answers1

1

The rel attribute can be used only if your document type is HTML5, i.e. your page must start with

<!doctype html> line.

For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a comma-separated list of relationship values.

The values and their semantics will be registered by some authority that might have meaning to the document author. The default relationship, if no other is given, is void. Use this attribute only if the href attribute is present.

See here for details.

Also, a side-note, do not trust the w3schools web site, it has nothing to do with the w3c consortium.

Mayank Pathak
  • 3,621
  • 5
  • 39
  • 67
Bud Damyanov
  • 30,171
  • 6
  • 44
  • 52
  • I know about and HTML5 and I am using it in my page as well. Can anyone have a solution of the issue? – user3405976 Apr 22 '14 at 08:26
  • Use this attribute only if the `href` attribute is present in your `area` tag, or just put empty `href` if you do not need them. – Bud Damyanov Apr 22 '14 at 08:27
  • @bodi0, Yeah, I know this. Please see my Fiddle. I just want a solution of my issue. Any workaround would be much appreciated – user3405976 Apr 22 '14 at 08:34