Re: [WSG] a elements and what they can contain

2005-05-29 Thread Ben Ward
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=homepageHomepage/li' without the extra a / tag.

Re: [WSG] a elements and what they can contain

2005-05-29 Thread Thomas Ditmars
On 29-May-05 17:06, Ben Ward wrote: 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

[WSG] a elements and what they can contain

2005-05-26 Thread John Allsopp
I believe that, and all my reading leads me to believe that a elements may only contain other inline elements (not including a elements. Can anyone point me to the definitive part of the HTML spec that says this? Thanks, john John Allsopp style master :: css editor ::

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Lea de Groot
On Thu, 26 May 2005 16:30:30 +1000, John Allsopp wrote: Can anyone point me to the definitive part of the HTML spec that says this? http://www.w3.org/TR/REC-html40/struct/links.html#edef-A is one place :) Lea ~ sits back to see if she got in first ;) -- Lea de Groot Elysian Systems - I

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Bruno Torres
I think it's here: http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.elt.html#a Cheers! On 5/26/05, John Allsopp [EMAIL PROTECTED] wrote: I believe that, and all my reading leads me to believe that a elements may only contain other inline elements (not including a

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Prabhath Sirisena
Can anyone point me to the definitive part of the HTML spec that says this? http://www.w3.org/TR/REC-html40/struct/links.html#edef-A is one place :) Was going through the specs when Lea responded, but surprisingly, there's no specific phrase that says you can't wrap block level elements

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Bruno Torres
That was the transitional one, the strict is http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-s.elt.html#a On 5/26/05, Bruno Torres [EMAIL PROTECTED] wrote: I think it's here: http://www.w3.org/TR/1999/xhtml-modularization-19990406/DTD/doc/xhtml1-t.elt.html#a Cheers!

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Ingo Chao
John Allsopp schrieb: I believe that, and all my reading leads me to believe that a elements may only contain other inline elements (not including a elements. Can anyone point me to the definitive part of the HTML spec that says this?

Re: [WSG] a elements and what they can contain

2005-05-26 Thread John Allsopp
Lea, that would be this bit yes? !ELEMENT A - - (%inline;)* -(A) -- anchor -- j On 26/05/2005, at 4:47 PM, Lea de Groot wrote: On Thu, 26 May 2005 16:30:30 +1000, John Allsopp wrote: Can anyone point me to the definitive part of the HTML spec that says this?

Re: [WSG] a elements and what they can contain

2005-05-26 Thread John Allsopp
Pabhath, Was going through the specs when Lea responded, but surprisingly, there's no specific phrase that says you can't wrap block level elements inside an anchor. I guess it's implied that no inline element can contain a block level element, and there's no need to specifically mention this

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Lea de Groot
On Thu, 26 May 2005 17:03:25 +1000, John Allsopp wrote: that would be this bit yes? !ELEMENT A - - (%inline;)* -(A) -- anchor -- Yep, as Ingo says, the '%inline;' means 'only inline elements in here' and the '-(A)' means 'except that exciting one, the anchor'. Lea ~ who naughtily

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Patrick H. Lauke
Lea de Groot wrote: http://www.w3.org/TR/REC-html40/struct/links.html#edef-A is one place :) Topically: Tommy's 'The art of reading a DTD' http://www.autisticcuckoo.net/archive.php?id=2005/05/01/art-of-reading-dtd -- Patrick H. Lauke _

Re: [WSG] a elements and what they can contain

2005-05-26 Thread John Allsopp
Thanks Lea, all sorted now, john On 26/05/2005, at 5:20 PM, Lea de Groot wrote: Yep, as Ingo says, the '%inline;' means 'only inline elements in here' and the '-(A)' means 'except that exciting one, the anchor'. John Allsopp style master :: css editor ::

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Ingo Chao
Ingo Chao schrieb: http://www.w3.org/TR/REC-html40/struct/links.html#edef-A 12.2 The A element !ELEMENT A - - (%inline;)* -(A) -- anchor -- (%inline)* content: zero or more inline elements -(A) but no other A element You are right, there is no phrase visible to me that explicitely

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Peter Ottery
re: a elements may only contain other inline elements hang on, so if i have an anchor tag wrapped around an image (display:inline by default), its deemed fine by the validator, but if I make that image display:block via the css, (for design purposes, which must be a pretty common practice on

Re: [WSG] a elements and what they can contain

2005-05-26 Thread John Allsopp
Peter, re: a elements may only contain other inline elements hang on, so if i have an anchor tag wrapped around an image (display:inline by default), its deemed fine by the validator, but if I make that image display:block via the css, (for design purposes, which must be a pretty common

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Damian Sweeney
re: a elements may only contain other inline elements hang on, so if i have an anchor tag wrapped around an image (display:inline by default), its deemed fine by the validator, but if I make that image display:block via the css, (for design purposes, which must be a pretty common practice on

Re: [WSG] a elements and what they can contain

2005-05-26 Thread Peter Ottery
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