W3C home > Mailing lists > Public > public-xhtml2@w3.org > June 2008

Re: block level anchor element content

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 04 Jun 2008 15:09:41 +0200
To: "Mark Birbeck" <mark.birbeck@webbackplane.com>, "Kevin McManus" <k.mcmanus@gre.ac.uk>
Cc: public-xhtml2@w3.org
Message-ID: <op.ub76ufwjsmjzpq@acer3010.ins.cwi.nl>

But still, it is worth pointing out to Kevin that XHTML2 does just what he  
wants, but in a slightly different way: any element may have an href  
attribute to turn it into a link. So:

	<div href="teaching.html">....</div>

(And because of the confusion between HTML and CSS's different meanings of  
'block' and 'inline' we have renamed them 'text' and 'structure' in XHTML2)


On Tue, 03 Jun 2008 02:34:15 +0200, Mark Birbeck  
<mark.birbeck@webbackplane.com> wrote:

> Hi Kevin,
> On Fri, May 30, 2008 at 9:06 PM, Kevin McManus <k.mcmanus@gre.ac.uk>  
> wrote:
>> I am not entirely sure if this is the appropriate list but...
>> I feel that it would help accessibilty if anchor elements could
>> contain block level elements.
>> An example can be seen at the URL below.
>> Having a div as the anchor content is supported by the main
>> browsers and greatly increases the target size while maintaining
>> keyboard support.
> But 'block level' is about the document structure, and *not* about CSS
> formatting. You can style an <a> or an <img> to be "display: block;"
> to get the effect in your page, but that is very different to the
> notions of 'block' and 'inline' which we use when describing elements
> in the HTML and XHTML languages.
> The way to look at it is that a document is first (at the top level)
> divided into 'blocks', like paragraphs and sections. If you want a
> block with no semantic meaning (i.e., not a paragraph of text, and not
> a section) then you can use a div.
> Inside these blocks is text, and the text can contain 'inline'
> mark-up. An example of inline mark-up would be emphasis, superscript,
> subscript...that kind of thing. Images can be inline, and of course
> any text could have an anchor tag around it. If you want an inline
> element with no semantics then use a span.
> So as you can see, 'inline' elements don't have to be "display:
> inline;" and 'block-level' elements don't have to be "display:
> block;"; inline elements are essentially those that don't give the
> document any structure, but could appear in a 'flow' of text.
> And allowing <a> to contain a <div> would break this whole structure.
> Regards,
> Mark
Received on Wednesday, 4 June 2008 13:10:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:30:30 UTC