In title its meant to say form not forum sorry Hey could someone tell me why this isnt validating at http://validator.w3.org Any help would be much appreciated It is in xhtml strict <form method="post" id="searchform" action="#"> <div class="inputbg"> <input type="text" class="inputuser" value="Email address" name="email" id="email" onfocus="if (this.value == 'Email address') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Email address';}" /> </div> <input type="image" class="inputbutton" src="images/spacer.gif" value="submit"/> </form> HTML: Thanks
If validation is all you're after, then throw some <p> tags around the second last line. <p><input type="image" class="inputbutton" src="images/spacer.gif" value="submit"/></p> Code (markup):