|
Posted by Andy Dingley on 10/13/06 23:51
Arjen wrote:
> Hi, this piece of html doesn;t validate. That w3c validator sais
> something about block elements in inline elements. As I understand it
> <p><form></form></p> is valid or am I wrong ?
Invalid.
There's no such thing as a simple "block element" (I've made a couple
of postings on this in the last couple of weeks). There are elements
that are _members_of_ block, and elements that can _contain_ block. One
doesn't imply the other, and <p> is the obvious example. <p> acts like
block itself, but it can only contain inline.
Navigation:
[Reply to this message]
|