Posted by Bergamot on 01/09/07 01:01
Andrew wrote:
>
> Are there any circumstances where I can put a <div> inside a <p>
No. Per the DTD
<!ELEMENT P - O (%inline;)* -- paragraph -->
This means it can only contain inline elements. Div is a block element.
> or is
> this just part of using a Strict Doctype?
This rule is the same for all DOCTYPEs.
http://www.w3.org/TR/html401/struct/text.html#edef-P
--
Berg
Navigation:
[Reply to this message]
|