| forums.macromedia.com 2004-08-08, 7:14 am |
| Hi there,
I was pretty sure I had correctly coded my XHTML but for some reason my form
is not liked by the vlidator.
I am pretty sure I have done things correctly but these are the errors. Can
anyone advise please?
1.. Line 71, column 83: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag
...="7dfa25865f1568648438a1afb0bb47a9" />
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>").
?
2.. Line 72, column 49: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag
<input type="hidden" name="action" value="add" />
?
3.. Line 73, column 41: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag
<input type="hidden" name="ac" value="" />
?
4.. Line 74, column 42: document type does not allow element "input" here;
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
"address", "fieldset", "ins", "del" start-tag
<input type="hidden" name="id" value="" />
?
5.. Line 79, column 126: end tag for "select" which is not finished
...le.background='#eee';" class="text" />
Most likely, You nested tags and closed them in the wrong order. For
example <p><em>...</p> is not acceptable, as <em> must be closed before <p>.
Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element (e.g. 'ul') which requires
a child element (e.g. 'li') that you did not include. Hence the parent
element is "not finished", not complete.
?
6.. Line 79, column 126: end tag for "select" which is not finished
...le.background='#eee';" class="text" />
?
7.. Line 80, column 10: document type does not allow element "option"
here; assuming missing "select" start-tag
<option>Please select one</option>
?
8.. Line 96, column 161: there is no attribute "onChange"
...ound='#eee';" class="text"
onChange="document.pr.ac.value='pr';document.pr.s
You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is often caused by incorrect use of the "Strict" document type with a
document that uses frames (e.g. you must use the "Transitional" document
type to get the "target" attribute), or by using vendor proprietary
extensions such as "marginheight" (this is usually fixed by using CSS to
achieve the desired effect instead).
This error may also result if the element itself is not supported in the
document type you are using, as an undefined element will have no supported
attributes; in this case, see the element-undefined error message for
further information.
How to fix: check the spelling and case of the element and attribute,
(Remember XHTML is all lower-case) and/or check that they are both allowed
in the chosen document type, and/or use CSS instead of this attribute.
?
9.. Line 96, column 211: end tag for "select" which is not finished
...ac.value='pr';document.pr.submit()" />
?
10.. Line 96, column 211: end tag for "select" which is not finished
...ac.value='pr';document.pr.submit()" />
?
11.. Line 97, column 10: document type does not allow element "option"
here; assuming missing "select" start-tag
<option>Please select one</option>
?
12.. Line 112, column 149: end tag for "select" which is not finished
...yle.background='#eee';" class="text"/>
?
13.. Line 112, column 149: end tag for "select" which is not finished
...yle.background='#eee';" class="text"/>
?
14.. Line 113, column 10: document type does not allow element "option"
here; assuming missing "select" start-tag
<option>Please select one</option>
?
15.. Line 171, column 5: document type does not allow element "p" here;
missing one of "object", "ins", "del", "map", "button" start-tag
<p> </p>
?
a..
1.. Line 77, column 52: reference to non-existent ID "subject"
2.. ...row"><span class="label"><label for="subject">Please select
City</label></sp.
3.. This error can be triggered by:
1.. A non-existent input, select or textarea element
a.. A missing id attribute
b.. A typographical error in the id attribute
1.. Try to check the spelling and case of the id you are referring to.
|