Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
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
Posted

1 solution

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

within <td> </td> block.
 
Share this answer
 
v3
Comments
ursatish 23-May-12 4:34am    
Thanks a lot
VJ Reddy 23-May-12 4:37am    
You're welcome and thank you for accepting the solution :)
Mohamed Mitwalli 23-May-12 4:39am    
5+
VJ Reddy 23-May-12 4:40am    
Thank you, Mohamed :)
Espen Harlinn 23-May-12 5:25am    
5'ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900