Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: My page isn't validating
07-20-2007, 07:31 PM #1
- Join Date
- Sep 2006
- Thanked 1 Time in 1 Post
My page isn't validating
So Im almost done creating a new site for a client. As usual I always validate the layout when I'm done designing it. I've fixed all the errors except for one.
When I try to validate this page
I get this error:
Line 52 column 22: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag.
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Any help is greatly appreciated.-bubbles
07-20-2007, 08:18 PM #2
- Join Date
- Dec 2006
- Copenhagen, Denmark
- Thanked 5 Times in 5 Posts
The problem is that one is not allowed to nest (natural) block-level elements within the h1 element.