I am implementing a comprehensive image-map generator utility, so have been
studying W3C HTML 4.01 Specification
(http://www.w3.org/TR/html4/struct/objects.html#h-13.6) on image maps (among
other things).
I note the document specifies that block level content can be included
within a <map>. Testing this in order to discover why one might wish to do
this, I find the block level content is rendered in page flow order anyway,
and not magically associated with (say) the image that uses the map.
Among elements which might be included within the <map> is specifically
mentioned the anchor (<a>) element. Testing this, I find the anchors are
rendered as normal anchors, again, in page flow order.
It is not clear to me how any advantage is gained by placing such content
within an image map. Indeed, such inclusion appears only to confuse the
organisation of the file. Does anybody know the intended use of this
facility?
Related to this, I note that anchor tags may include the 'shape' attribute,
presumably intended for use in the same way as this attribute in <area>
tags. Testing it, I find I cannot get <a> elements to express any shape but
that of their normal content.
Related to this also is the facility to provide both <map> and <area> tags
with style, either inline or with class attributes. Testing has yielded no
discernible effect with any style properties one might think to apply.
Does any W3C guru have answers for these mysteries? (Or is it just that my
testing has been conducted with IE? - even if that is the problem, block
content in maps still needs explanation).
Thanks in advance
Laurence
studying W3C HTML 4.01 Specification
(http://www.w3.org/TR/html4/struct/objects.html#h-13.6) on image maps (among
other things).
I note the document specifies that block level content can be included
within a <map>. Testing this in order to discover why one might wish to do
this, I find the block level content is rendered in page flow order anyway,
and not magically associated with (say) the image that uses the map.
Among elements which might be included within the <map> is specifically
mentioned the anchor (<a>) element. Testing this, I find the anchors are
rendered as normal anchors, again, in page flow order.
It is not clear to me how any advantage is gained by placing such content
within an image map. Indeed, such inclusion appears only to confuse the
organisation of the file. Does anybody know the intended use of this
facility?
Related to this, I note that anchor tags may include the 'shape' attribute,
presumably intended for use in the same way as this attribute in <area>
tags. Testing it, I find I cannot get <a> elements to express any shape but
that of their normal content.
Related to this also is the facility to provide both <map> and <area> tags
with style, either inline or with class attributes. Testing has yielded no
discernible effect with any style properties one might think to apply.
Does any W3C guru have answers for these mysteries? (Or is it just that my
testing has been conducted with IE? - even if that is the problem, block
content in maps still needs explanation).
Thanks in advance
Laurence
Comment