- From: David Dorward <david@dorward.me.uk>
- Date: Fri, 27 May 2005 09:54:16 +0100
- To: "Mike @cox" <mikeherman1@cox.net>
- Cc: www-validator@w3.org
On Thu, May 26, 2005 at 05:02:49PM -0700, Mike @cox wrote: > Line 75, column 608: document type does not allow element "p" here; > missing one of "object", "applet", "map", "iframe", "button", "ins", "del" > start-tag > What does "missing one of "object", "applet", "map", "iframe", "button", > "ins", "del" start-tag" mean? The element which is the parent element of your paragraph isn't allowed to contain paragraphs. The elements listed are allowed to contain paragraphs AND may be child elements of the element that the paragraph is currently a child of. For example: <span><p>foo</p></span> * Span elements may not containing p elements. * Span elements may contain ins elements. * Ins elements may contain p elements. So <span><ins><p>foo</p></ins></span> ... would be valid. The object element is "missing". However, while it would be *valid*, it would not be *conformant*. The INS and DEL elements must not contain block-level content when these elements behave as inline elements. -- http://www.w3.org/TR/html4/struct/text.html#edef-ins This is because DTDs do not allow the constraint "Ins elements may contain block level elements unless they be being treated as an inline element" to be specified. The important bit of the error is "document type does not allow element "p" here". You need to change the parent element to something more suitable (which usually means replacing <font> or <span> with <div> or removing the parent element and applying style to the paragraph directly). -- David Dorward http://dorward.me.uk
Received on Friday, 27 May 2005 08:54:21 UTC