I can not seem to get one portion of my site to validate.. Anyone have any idea whats wrong with the following? the DTD .. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <form id="login" action="/manage.php?code=login" method="POST"> <input type="hidden" name="redirect" value="/index/"> Username: <input class="theInput" type="text" name="username"> Password: <input class="theInput" type="password" name="password"> <input type="submit" name="Submit" value="Login"> </form> Ive tried changing all sorts of things with this but never seems to work
No ideas egh? Ive swapped doctype to xhtml strict and still get same errors on that one portion: <form id="login" action="/manage.php?code=login" method="post"> <input type="hidden" name="redirect" value="/index/"/> Username:<input class="theInput" type="text" name="username"/> Password:<input class="theInput" type="password" name="password"/> <input type="submit" name="Submit" value="Login"/> </form> Oh well.. Guess it really doesnt need to validate lol
I found the answer here: http://lists.evolt.org/archive/Week-of-Mon-20020819/127145.html Had to wrap the form elements in a <div>
Or a fieldset. However, if you use a fieldset, you have to use a legend as well. Those two elements are the hardest to style consistently cross browser, so an extra DIV and SPAN will be required to act as placeholders (the former for IE, and the latter because it trips up Gecko based browsers like Firefox, K-Meleon and Netscape 6+). You can learn more at www.tyssendesign.com.au/articles/legends-of-style/