is block or inline.
But the element itself is block-level. Therefore no good inside a
. When it gets to the coded tag, it
then has to decide what to do about it. I believe most (all?) browsers
ignore it silently as a harmless coding error.
We just had a discussion about this here (or hereabouts) roughly 3 to 5
months ago.
See also http://www.w3.org/TR/html401/struct/global.html#h-7.5.4 if you
haven't already.
> and P DTD ( )
> is declared like H1
Not exactly. H1 is declared as
so the closing tag is required.
>
> Also, both P and H1 are declared in block level elements.
I'm not sure what you mean by this sentence.
>
> What is the reason behind this ?
> Does DIV transmutate to inline only in P or is there a rule for this ?
No, yes, see above.
--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
Re: Weird validation result
am 24.08.2007 17:35:38 von Andy Dingley
On 24 Aug, 15:55, X Ryl wrote:
> I've tried validate something like (declaration excluded) :
> foo
bar
>
> It doesn't validate, as 's DTD is :
> (%inline;)* -- heading -->
> meaning that h1 can only contains inline element.
>
> That's strange as DIV DTD is :
> -- generic language/style container -->
> with flow being "block or inline"
That means that can _contain_ "block or inline"
itself is a member of %block;, but _not_ a member of %inline;
and so it can't be placed inside
You need to read the definition of %block; to see this, not the
definition of
Re: Weird validation result
am 24.08.2007 17:44:26 von X Ryl
On 24 ao=FBt, 17:35, Andy Dingley wrote:
> On 24 Aug, 15:55, X Ryl wrote:
>
> > I've tried validate something like (declaration excluded) :
> > foo
bar
>
> > It doesn't validate, as 's DTD is :
> > (%inline;)* -- heading -->
> > meaning that h1 can only contains inline element.
>
> > That's strange as DIV DTD is :
> > -- generic language/style container -->
> > with flow being "block or inline"
>
> That means that can _contain_ "block or inline"
>
>
itself is a member of %block;, but _not_ a member of %inline;
> and so it can't be placed inside
> You need to read the definition of %block; to see this, not the
> definition of
Thank you, all of you, for your answers. It's clear now.
It's not obvious when default browser behaviour hides what should be
seen as error.