Question : XHTML Validation Errors: End tag for td omitted

I don't understand why my code does not validate.

I have closed all td tags but there is a validation error: End tag for td omitted

Please help me find where the problem is, thanks.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Lighning Flame Support</title>
	<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
	<link href="hesk_style.css" type="text/css" rel="stylesheet" />
	<script language="Javascript" type="text/javascript" src="hesk_javascript.js"></script>
    </head>
<body>

<div align="center">
<table border="0" cellspacing="0" cellpadding="4" class="enclosing">
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td><span class="smaller"><a href="/Lighning-bolt/application/helpdesk/" class="smaller">Lighning Flame Support</a>
&raquo; Submit a Ticket</span></td>
</tr>
</table>

</td>
</tr>

<tr>
<td>

	
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
	<td width="7" height="7"><img src="img/roundcornerslt.gif" width="7" height="7" alt="" /></td>
	<td class="roundcornerstop"></td>
	<td><img src="img/roundcornersrt.gif" width="7" height="7" alt="" /></td>
</tr>
<tr>
	<td class="roundcornersleft">&nbsp;</td>
	<td style="background: #ffeeee">

  <!-- START FORM -->

	<p>Please use the form below to submit a ticket. Required fields are marked with	<font class="important"> *</font></p>
	<!-- Contact info -->
	<table border="0" width="100%">
	<tr>
	<td style="text-align:right" width="150">Name: <font class="important">*</font></td>

	<td width="80%"><input type="text" name="name" size="40" maxlength="30" value="" /></td>
	</tr>
	<tr>
	<td style="text-align:right" width="150">E-mail: <font class="important">*</font></td>
	<td width="80%"><input type="text" name="email" size="40" maxlength="50" value="" /></td>
	</tr>
	</table>

	<hr />

	<!-- Department and priority -->
	<table border="10" width="100%">
	<tr>
	<td style="text-align:right" width="150">Category: <font class="important">*</font></td>
	<td width="80%"><select name="category">
	<option value="1">Default</option>	</select></td>

	</tr>
	<tr>
	<td style="text-align:right" width="150">Priority: <font class="important">*</font></td>
	<td width="80%"><select name="priority">
	<option value="3" >Low</option>
	<option value="2" >Medium</option>
	<option value="1" >High</option>

	</select></td>
	</tr>
	</table>

	<hr />

	<!-- START CUSTOM BEFORE -->
		<!-- END CUSTOM BEFORE -->

	<!-- ticket info -->

	<table border="0" width="100%">
	<tr>
	<td style="text-align:right" width="150">Subject: <font class="important">*</font></td>
	<td width="80%"><input type="text" name="subject" size="40" maxlength="40" value="" /></td>
	</tr>
	<tr>
	<td style="text-align:right" width="150" valign="top">Message: <font class="important">*</font></td>

	<td width="80%"><textarea name="message" rows="12" cols="60"></textarea></td>
	</tr>
	</table>

	<hr />

	<!-- START CUSTOM AFTER -->
		<!-- END CUSTOM AFTER -->

		<table border="0" width="100%">

	<tr>
	<td style="text-align:right" width="150" valign="top">Attachments:</td>
	<td width="80%" valign="top"><p class="finePrint">
	<input type="file" name="attachment[1]" size="50" /><br /><input type="file" name="attachment[2]" size="50" /><br />	Accepted file types: *.gif, *.jpg, *.png, *.zip, *.rar, *.csv, *.doc, *.docx, *.txt, *.pdf<br />
	Max. file size: 1024 Kb
	(1.00 Mb)
	</p></td>
	</tr>
	</table>

	</div>
    <hr />
  
	<!-- Submit -->
	<div class="center">
	<table border="11" class="center">
	<tr>
	<td>

  <b>Before submitting please make sure of the following</b>

  <ul>
  <li>All necessary information has been filled out.</li>
	<li>All information is correct and error-free.</li>
  </ul>
	<p class="center"><input type="submit" value="Submit Ticket" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>

  </td>
	</tr>

	</table>


  <!-- END FORM -->
	</td>
	<td class="roundcornersright">&nbsp;</td>
</tr>
<tr>
	<td><img src="img/roundcornerslb.gif" width="7" height="7" alt="" /></td>
	<td class="roundcornersbottom"></td>
	<td width="7" height="7"><img src="img/roundcornersrb.gif" width="7" height="7" alt="" /></td>

</tr>
</table>

</td>
</tr>
</table>
</div>
</body>
</html>

Answer : XHTML Validation Errors: End tag for td omitted

This validates. http://www.rodsdot.com/test.html

Note you closed a division </div> then opened another division <div class="center"> in the middle of the page and in the incorrect location.

Very easy to find if you would properly indent.

I am shocked to see a table layout and the use of <font> tags in a 2010 web page. In 1999 W3C's recommendation was to not use tables for layout, nor to use the <font> tags. That is what CSS is for.

I removed the script and linked stylesheet tags as I had neither the js page nor the stylesheet.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Lighning Flame Support</title>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
</head>
<body>
<div align="center">
  <table border="0" cellspacing="0" cellpadding="4" class="enclosing">
    <tr>
      <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
          <tr>
            <td><span class="smaller"><a href="/Lighning-bolt/application/helpdesk/" class="smaller">Lighning Flame Support</a>» Submit a Ticket</span></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table width="100%" border="1" cellspacing="0" cellpadding="0">
          <tr>
	        <td width="7" height="7"><img src="img/roundcornerslt.gif" width="7" height="7" alt="" /></td>
	        <td class="roundcornerstop"></td>
	        <td><img src="img/roundcornersrt.gif" width="7" height="7" alt="" /></td>
          </tr>
          <tr>
	        <td class="roundcornersleft">&nbsp;</td>
	        <td style="background: #ffeeee">
              <!-- START FORM -->
              <p>Please use the form below to submit a ticket. Required fields are marked with	<font class="important"> *</font></p>
              <!-- Contact info -->
              <table border="0" width="100%">
                <tr>
                  <td style="text-align:right" width="150">Name: <font class="important">*</font></td>
                  <td width="80%"><input type="text" name="name" size="40" maxlength="30" value="" /></td>
                </tr>
                <tr>
                  <td style="text-align:right" width="150">E-mail: <font class="important">*</font></td>
                  <td width="80%"><input type="text" name="email" size="40" maxlength="50" value="" /></td>
                </tr>
              </table>
              <hr />
              <!-- Department and priority -->
              <table border="10" width="100%">
                <tr>
                  <td style="text-align:right" width="150">Category: <font class="important">*</font></td>
	              <td width="80%"><select name="category">
	                                <option value="1">Default</option>
	                              </select>
	              </td>
                </tr>
                <tr>
                  <td style="text-align:right" width="150">Priority: <font class="important">*</font></td>
                  <td width="80%"><select name="priority">
	                                <option value="3" >Low</option>
                                    <option value="2" >Medium</option>
                                    <option value="1" >High</option>
                                  </select>
                  </td>
                </tr>
              </table>
              <hr />
              <!-- START CUSTOM BEFORE -->
              <!-- END CUSTOM BEFORE -->
              <!-- ticket info -->
              <table border="0" width="100%">
                <tr>
                  <td style="text-align:right" width="150">Subject: <font class="important">*</font></td>
                  <td width="80%"><input type="text" name="subject" size="40" maxlength="40" value="" /></td>
                </tr>
	            <tr>
                  <td style="text-align:right" width="150" valign="top">Message: <font class="important">*</font></td>
                  <td width="80%"><textarea name="message" rows="12" cols="60"></textarea></td>
                </tr>
              </table>
              <hr />
              <!-- START CUSTOM AFTER -->
              <!-- END CUSTOM AFTER -->
              <table border="0" width="100%">
                <tr>
                  <td style="text-align:right" width="150" valign="top">Attachments:</td>
                  <td width="80%" valign="top">
                    <p class="finePrint"><input type="file" name="attachment[1]" size="50" /><br /><input type="file" name="attachment[2]" size="50" /><br />	Accepted file types: *.gif, *.jpg, *.png, *.zip, *.rar, *.csv, *.doc, *.docx, *.txt, *.pdf<br />Max. file size: 1024 Kb (1.00 Mb)</p>
                  </td>
                </tr>
              </table>
	        <!--/div-->
            <hr />
            <!-- Submit -->
            <!--div class="center"-->
              <table border="11" class="center">
                <tr>
                  <td><b>Before submitting please make sure of the following</b>
                      <ul>
                        <li>All necessary information has been filled out.</li>
                        <li>All information is correct and error-free.</li>
                      </ul>
	                  <p class="center"><input type="submit" value="Submit Ticket" class="orangebutton" onmouseover="hesk_btn(this,'orangebuttonover');" onmouseout="hesk_btn(this,'orangebutton');" /></p>
                  </td>
                </tr>
              </table>
              <!-- END FORM -->
	        </td>
            <td class="roundcornersright">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="img/roundcornerslb.gif" width="7" height="7" alt="" /></td>
            <td class="roundcornersbottom"></td>
            <td width="7" height="7"><img src="img/roundcornersrb.gif" width="7" height="7" alt="" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
</body>
</html>
Random Solutions  
 
programming4us programming4us