2010-12-08 52 views
1

任何人能夠解釋爲什麼下列任何光線:聯繫表未驗證

<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> 

當我離開每一行的結束標記爲爲「>」反對'/>'我得到更多的問題。有些人可以協助我重新填寫此表格,以便驗證。

感謝

回答

3

<form id="client_login_form" method="post" action="" />末刪除斜槓。立即關閉標籤,如<br />

+0

嗨,這樣做,現在我有3個錯誤,按本:國家統計局98,列97:文檔類型不允許元素「輸入」在這裏;缺少「p」,「h1」,「h2」,「h3」,「h4」,「h5」,「h6」,「div」,「pre」,「address」,「fieldset」,「ins」 ,「del」開始標記 ... text「name =」login_user_name「title =」Username「tabindex =」10「class =」username「/> – 2010-12-08 15:47:55

+1

@Bill Johnson:」缺少一個「的意思就是它讀取的內容。驗證器抱怨的原因是某些標籤必須是某些其他標籤的孩子,W3C有所有的細節,花一些時間仔細閱讀驗證器輸出,如果你仍然不能寫有效的(X)HTML,在網絡中的良好howtos ... – rik 2010-12-08 15:54:25

1

您的開場表單標籤以 /> 結尾。

將其更改爲

<form id="client_login_form" method="post" action="">