任何人都可以解释一下为什么会出现以下情况:
<form id="" method="post" action="" />
<input type="text" name="" title="" tabindex="10" class="" />
<input type="password" name="" title="" tabindex="20" class="password" />
<input type="submit" name="submit" class="submit" value="" />
</form>从W3C获取此错误:
Line 101, Column 11: end tag for element "form" which is not open
</form>当我将每行的结束标记保留为'>‘而不是'/>’时,我得到了更多的问题。可以一些帮助我重新执行此表单,以便它的有效性。
谢谢
发布于 2010-12-08 23:46:04
去掉<form id="client_login_form" method="post" action="" />末尾的斜杠。这会立即结束标记,就像在<br />中一样。
发布于 2010-12-08 23:46:42
您的开始form标记以/>自身结束。
将其更改为
<form id="client_login_form" method="post" action="">https://stackoverflow.com/questions/4389347
复制相似问题