Click here to get back home

W3C Spec: Block level content within ? Style in ? Why?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
W3C Spec: Block level content within ? Style in ? Why? laurence 06-09-2005
Get Chitika Premium
Posted by Harlan Messinger on June 9, 2005, 12:08 pm
Please log in for more thread options


laurence wrote:
>
> Could it be that maps will not always contain renderable content (apart from
> hotspots on image/object), and so should not then make their presence felt
> on a page in the form of a div?

You have to have the DIV, or some other block-level element, and its
contents inside the MAP anyway, and it will display anyway, if you're
following the approach that uses A tags instead of AREA tags. I'm saying
that in that case, the MAP tag itself is serving no purpose except as a
place to hang the identifier, but the block itself can be used for that.

> Also, maps can be used by more than one image; their location in a div, at
> some particular page location doesn't make much sense.

Eh? You're making the same set of shapes and coordinates available, to
as many images as you want, via the A tags, whether or not you wrap the
DIV inside a MAP.

>
> In experimenting with your code, I found that adding <area> elements to the
> map (for it is decreed you can mix these elements within a map) appear to
> cancel out the A regions in Firefox. Only the AREA regions work as
> hot-spots. Interesting.

Interesting, that's not what's supposed to happen. The spec says that
when a block and a set of AREA tags are both present, the AREA tags are
meant for use by older UAs that won't know what to do with the A tags
that have SHAPE and COORDS attributes. Compliant UAs that understand
what to do with the A tag's image-map attributes are supposed to use the
block and ignore the AREA tags.


Posted by David Dorward on June 8, 2005, 9:56 pm
Please log in for more thread options


laurence wrote:

> 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.

"The MAP element may be used without an associated image for
general navigation mechanisms."
-- http://www.w3.org/TR/html4/struct/objects.html#edef-MAP


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by David Dorward on June 8, 2005, 9:58 pm
Please log in for more thread options


laurence wrote:

> 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.

"The MAP element may be used without an associated image for
general navigation mechanisms."

"Block-level content. This content should include A elements
that specify the geometric regions of the image map and the
link associated with each region. Note that the user agent
should render block-level content of a MAP element. Authors
should use this method to create more accessible documents."

-- http://www.w3.org/TR/html4/struct/objects.html#edef-MAP

i.e. Its the image map version of the alt attribute.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Posted by Lauri Raittila on June 8, 2005, 11:20 pm
Please log in for more thread options


in comp.infosystems.www.authoring.html, David Dorward wrote:
> laurence wrote:
>
> > 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.
>
> "The MAP element may be used without an associated image for
> general navigation mechanisms."
>
> "Block-level content. This content should include A elements
> that specify the geometric regions of the image map and the
> link associated with each region. Note that the user agent
> should render block-level content of a MAP element. Authors
> should use this method to create more accessible documents."
>
> -- http://www.w3.org/TR/html4/struct/objects.html#edef-MAP
>
> i.e. Its the image map version of the alt attribute.

Not in sence of alternative. Block level content is always displayed.
This usually makes sence on cases image map is supposed to be used... but
does not for the most common case, which is textual links in one image.
(inherited such site, orginal images long gone, everything in one
giant jpg...)


--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/buy-opera.html?AID=882173

Posted by laurence on June 9, 2005, 8:52 am
Please log in for more thread options


>> i.e. Its the image map version of the alt attribute.
>
> Not in sence of alternative. Block level content is always displayed.
> This usually makes sence on cases image map is supposed to be used... but

Thanks Lauri. Can you explain how it usually makes sense?

Laurence.




Similar ThreadsPosted
In HTML spec,are "href" and "style" called "attribute"?....@@ January 29, 2005, 11:14 am
Multiple-level Table of Contents April 6, 2006, 9:59 am
Help with multi level category navigation April 11, 2006, 1:50 pm
Double-spacing 1st List Level, but not Nested Levels July 9, 2006, 8:24 pm
XHTML DOCTYPE breaks JavaScript x.style.top and x.style.left? July 5, 2005, 12:58 pm
Is Html4.01 spec(http://www.w3.org/TR/REC-html40/) downly compatible to older editions such like Html4.0? April 20, 2005, 3:26 am
table inside div block - no joy April 2, 2006, 6:26 pm
What's causing the gap between the logo and the next block? November 9, 2008, 8:56 am
How to make block elements flow? May 15, 2005, 6:50 pm
DTD? Is address element block or inline? December 15, 2005, 10:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap