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.
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
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 ::
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
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
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
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!
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?
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?
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
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
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
_
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 ::
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: 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
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: 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
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
18 matches
Mail list logo