Forum Moderators: open

Message Too Old, No Replies

Validation Issue: (I'm new at this)

         

accompressor

2:09 am on Jun 3, 2009 (gmt 0)

10+ Year Member



I am designing my first site and can not get a validation from [validator.w3.org....] Thanks for any advise you can give!

I solved most of the errors, but can not figure this one out:

The site is:
< sorry, no personal urls >

The error I am getting is:

Line 40, Column 7: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<div>

&#9993;

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>").

[edited by: tedster at 3:01 am (utc) on June 3, 2009]

rocknbil

2:20 am on Jun 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for any advise you can give!

Welcome aboard acompressor, first is see #13 of TOS [webmasterworld.com]

You have the div nested inside a span element. Spans are inline elements and a div cannot nest inside it.

accompressor

2:40 am on Jun 3, 2009 (gmt 0)

10+ Year Member



Thanks for your help.

I have almost all the errors solved.

The major problem I am having is with my paypal script, which i copied and pasted directly to my page:

Error Line 198, Column 94: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

…al.com/cgi-bin/webscr" method="post">

Any suggestions?

accompressor

3:04 am on Jun 3, 2009 (gmt 0)

10+ Year Member



ok, i got it, thanks for your help...i am validated

tedster

3:17 am on Jun 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That sounds like a similar kind of issue. The form element must be contained within only certain elements, but many more types of elements can be contained within the form element.

If you have, for example: <p><form></form></p> that will not validate. However, this will: <form><p></p></form>

<added>
I was still typing while you posted, apparently. Glad you resolved it.