Forum Moderators: open
<div id="account">
<table style="width: 165px;">
<tr>
<td class="title">Account
</td>
</tr>
<tr>
<td class="content">
<form method="post" action="login.php">
Username<br />
<input class="account_text" type="text" name="username" maxlength="15" />
<br />
Password<br />
<input class="account_text" type="password" name="password" maxlength="25" />
<br />
<input type="checkbox" name="remember_login" value="1" />Remember login?
<input type="hidden" name="redirect" value="%2F" />
<input class="submit" style="margin-top: 3px;" type="submit" name="login" value="Login" />
</form>
<a href="register.php">Register</a><br />
<a href="forgotpassword.php">Forgot Password?</a>
</td>
</tr>
</table>
</div>
Below are the results of attempting to parse this document with an SGML parser.
1. Line 53, column 0: character data is not allowed here
Username<br />
^
2. Line 53, column 13: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
Username<br />
^
3. Line 54, column 72: 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
... type="text" name="username" maxlength="15" />
^
4. Line 55, column 5: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
<br />
^
5. Line 56, column 13: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
Password<br />
^
6. Line 57, column 76: 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
...assword" name="password" maxlength="25" />
^
7. Line 58, column 5: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
<br />
^
8. Line 59, column 56: 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="checkbox" name="remember_login" value="1" />Remember login?
^
9. Line 60, column 50: 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="redirect" value="%2F" />
^
10. Line 61, column 89: 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
..."submit" name="login" value="Login" />
All inline elements must reside in a block level container. That's what the error message
missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag is indicating. So, just wrap your form contents in a paragraph or, even better, fieldset. :)