Hi,
I initially built a page in xhtml transitional and now I am trying to make the switch to xhtml strict. The entire site is valid except for a form that controls a search bar that I’m required to include on the site.
The site is here:
[url]http://www.indiana.edu/~meis/comments_strict.shtml
And the code for the search bar in question is here:
[CODE]
<div id=”search”>
<form method=”get” action=”http://search5.iu.edu/search”>
<input type=”text” name=”q” size=”25″ maxlength=”255″ value=”Search www.iub.edu”/>
<input type=”submit” name=”btnG” value=”Search”/>
<input type=”hidden” name=”site” value=”iub”/>
<input type=”hidden” name=”client” value=”iub”/>
<input type=”hidden” name=”proxystylesheet” value=”iub”/>
<input type=”hidden” name=”output” value=”xml_no_dtd”/>
</form>
</div>
What am I doing wrong? How can I get the above to be valid? The error message I get from w3 (for all six lines beginning with “<input…”) is:
[QUOTE]
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.
I’m really confused because the form that I have below the search bar is validating, but the search bar is not.
Any help appreciated, and any other criticisms/feedback of the site in general are also appreciated.
Thanks!