|
Posted by Harlan Messinger on 01/09/07 16:36
Andrew wrote:
> Hi,
>
> I am currently adding captions to images in a large site and made the
> mistake of trying to place a <div> element inside a <p> element and
> consequently failed validation using XHTML Strict 1.0. A corrected
> example is here:
>
> http://www.strong-family.org/foster/chapter_3.html
>
> Are there any circumstances where I can put a <div> inside a <p> or is
> this just part of using a Strict Doctype?
DIV has never been allowed inside a P in any version of HTML.
What is it about the entirety of the material you have inside this P
element, including the DIV, that you see as amounting to a single paragraph?
Navigation:
[Reply to this message]
|