PDA

View Full Version : XHTML Validation error explanation needed


Spookster
04-09-2003, 10:22 AM
Ok I can't figure out what it doesn't like but when I validate my page for XHTML compliancy it keeps giving this error:



Below are the results of attempting to parse this document with an SGML parser.

Line 31, column 67: document type does not allow element "select" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
..."products" onchange="MM_jumpMenu('parent',this,1)">
^
Line 44, column 8: end tag for "form" which is not finished (explain...).
</form>



Here is the page:

http://www.designqueue.com/worldbazaar/index.htm

What does it not like about my select box?

liorean
04-09-2003, 10:32 AM
Form tag requires block content, while all form elements except fieldset are inline. Wrap it in a div or something.

That will fix both errors: the one on select box is that it have to be wrapping in a block element, the one on form is that it must contain a block level element.