我不知道什麼是錯的這些HTML標籤:W3C驗證堅持的按鈕不被接受:W3C驗證抱怨輸入標籤
<div id='mainDiv'>
<div id='div1' >
<form id='SampleFormID' action=''>
<input type='button' id='downloadSample' ><br>
</form>
</div>
</div>
W3C錯誤:
Line 144, Column 49: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag
I'm using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">.
您也可以看看這裏: http://stackoverflow.com/questions/253312/why-wont-this-xhtml-form-validate – Pieniadz