找到了意外的标签,可能是之一, [英] Unexpected tag found ,expecting one of ,

查看:84
本文介绍了找到了意外的标签,可能是之一,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,
I have made a HTML form , but when i run in netbeans there are lot of errors highlighting which is showing errors like Unexpected tag <TABLE> found ,expecteing one of <TD> ,<TH>,
<tr>

<table width="140%" border="0" cellspacing="1" cellpadding="3">
<tr bgcolor="#CCCCFF">




<label for="financial year" class="required"><font size="4"><B>Financial Year</B></font></label>
<select id="financial year" name="financial year" size="1" >
<option value="1">2011-2012</option>
<option value="2">2012-2013</option>
<option value="3">2013-2014</option>
<option value="4">2014-2015</option>
<option value="5">2015-2016</option>
</select>




</tr>
</table>



</tr>

this is part of my code....where <tr>,<table> is displaying the error...kindly help

推荐答案

原因可能是<tr>标记未托管直接满足. <tr>元素包含一个或多个<th> or <td>元素,如此处 http://www.w3schools.com/tags/所述tag_tr.asp [ ^ ]
尝试附上以下内容
The reason may be that the <tr> tag does not host the content directly. A <tr> element contains one or more <th> or <td> elements as explained here http://www.w3schools.com/tags/tag_tr.asp[^]
Try enclosing the following content
<label for="financial year" class="required"><font size="4"><B>Financial Year</B></font></label>
<select id="financial year" name="financial year" size="1" >
<option value="1">2011-2012</option>
<option value="2">2012-2013</option>
<option value="3">2013-2014</option>
<option value="4">2014-2015</option>
<option value="5">2015-2016</option>
</select>


<td> </td> block中.


within <td> </td> block.


这篇关于找到了意外的标签,可能是之一,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆