Валидатор выдает ошибку на все инпуты:
| Цитата | Error Line 45 column 47: 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="act" value="Login" />
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
|
На тако код:
| Код | <table id="logo"> <tr> <td id="logo_layer_top" colspan="2"></td> </tr> <tr id="logo_middle"> <td id="logo_middle_left"></td>
<td id="logo_middle_right"> <form action="index.php" method="post" id="login-form"> <input type="hidden" name="act" value="Login" /> <input type="hidden" name="CODE" value="01" /> <input type="hidden" name="referer" value="/" /> <input type="hidden" name="CookieDate" value="1" /> <input type="hidden" name="remember" value="1" /> <div><label class="login" for="UserName">Логин:</label> <input type="text" id="UserName" name="UserName" /></div> <div><label class="login" for="PassWord">Пароль:</label><input type="password" id="PassWord" name="PassWord" class="input_password" /></div> <div class="centered"><a href="index.php?act=Reg&CODE=10" id="forget" onclick="open_window(this.href); return false;">Забыли пароль?</a> <input type="image" id="enter_button" src="enter.gif" alt="Войти" /> </div> </form> </td>
</tr> <tr> <td id="logo_layer_bottom" colspan="2"></td> </tr> </table>
|
|