What's wrong with this form?

Nate_Weller

New Member
I am having issues with this form:

Code:
<form method="post" action="generalcontact.php">
<input type="text" name="name" value="Name"  onblur="if(this.value == '') { this.style.color='#000'; this.value='Name'}" onfocus="if (this.value == 'Name') {this.style.color='#000'; this.value=''}"><br>
<input type="text" name="email" value="Email"  onblur="if(this.value == '') { this.style.color='#000'; this.value='Email'}" onfocus="if (this.value == 'Email') {this.style.color='#000'; this.value=''}"><br>
<textarea name="message" rows="1" cols="20" onblur="if(this.value =='') { this.style.color='#000'; this.value='Your Message.'}" onfocus="if (this.value == 'Your Message.') {this.style.color='#000'; this.value=''}">Your Message.</textarea><br>
<input type="submit" value="Send!" class="send">
</form>

When I check it with HTML 4.01 Strict W3C validator, I get the following errors:

document type does not allow element "BR"/"INPUT"/"TEXTAREA" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag

and

end tag for "FORM" which is not finished

How do I fix this? The form is the ONLY thing on the page. It is styled with CSS but just background color, text color, etc.
 
Top