It is very much a legacy thing these days, since it is being "solved"
for XHTML 2.0, insofaras you can attach the href="" attribute to
pretty much any element you like, regardless of block|inline
condition.

A navigation menu item could be '<li href="homepage">Homepage</li>'
without the extra <a /> tag. That's the way I remember it from last
time I read that spec, anyway.

I know that doesn't solve the problem in production sites for about
the next decade, but for reference sake it's worth noting.

Ben

On 5/27/05, Peter Ottery <[EMAIL PROTECTED]> wrote:
> Damien wrote:
> > As to your question about <a> tags for block level elements, can you
> > give an example when you would use this?
> 
> not a good one, no :) i had a fleeting thought like "what if, for some
> ungodly reason, you wanted to link an entire sidebar div to another
> page" - but it was fleeting. just me being too.... questioning :)
> 
> john wrote:
> > In terms of the document tree, and as far as a validator is
> > concerned its still a block or inline element as defined by the DTD.
> 
> ahhhh, ok. cool. explains a few things. silly me.
> see you at the pub :-)
> 
> pete
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
> 


-- 
http://www.ben-ward.co.uk
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to