I'm doing the design work on a site with a developer who's doing most of the actual coding. There was one place where my styles weren't working, and the first thing I usually check is to make sure there aren't any validation errors. I'm validating locally because the site isn't live yet. I used the Validate Local HTML on the Web Developer's Toolbar and got this error message:

Line 131, Column 23: end tag for "tbody" which is not finished.

</tbody>

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

I looked at the code and it seemed to me that the code was probably correct but that the tr's and td's were being generated and the Local Validator wasn't picking that up. Then I tried the View Generated Source (also on the Web Developer Toolbar) and pasted the output into the W3C "Validate by direct input" tool. It spit out 161 errors and 1 warning. I sent the code to the developer who said that it looked to him like most of the errors were being generated by the Web Developer Toolkit and not actually in the code itself. Have the rest of you had trouble with the View Generated Source tool? If so, is there a better way to grab the generated code?

My developer also said that most of the rest of the errors appeared to be from missing alt tags (we're using XHTML transitional) and that developers don't typically include alt tags in generated code. That doesn't sound right to me but I wanted to double check before I get back to him. Any thoughts on that?

Here's the generated portion of the code that I think the errors are coming from:

HTML Code:
 <table id="t_procedures" cellpadding="0" cellspacing="0">
			  	<thead>
			  	<tr>
			    	<th><img src="_images/edit.png" alt="Edit CPT Codes"></th>
					<th><img src="_images/delete.png" alt="Delete CPT Codes"></th>
					<th>Number</th>
					<th>Short Description</th>
					<th>Description</th>

					<th>Minutes</th>
					<th>Fee</th>
				</tr>
				</thead>
				<tbody>
                <tr><td><img style="cursor: pointer;" src="_images/editIcon.png"></td><td><img style="cursor: pointer;" src="_images/deleteIcon.png"></td><td>90808</td><td>SS</td><td>Individual psychotherapy, insight oriented, behavior modifying and/or supportive, in an office or outpatient facility, approx. 75 to 80 min. face-to-face with the patient</td><td>75</td><td>$280.00</td></tr><tr><td><img style="cursor: pointer;" src="_images/editIcon.png"></td><td><img style="cursor: pointer;" src="_images/deleteIcon.png"></td><td>Late Can</td><td>Description.


</td><td>Custom billing code</td><td>-</td><td>$150.00</td></tr><tr><td><img style="cursor: pointer;" src="_images/editIcon.png"></td><td><img style="cursor: pointer;" src="_images/deleteIcon.png"></td><td>90806</td><td>Individual therapy 45-50 minutes.
</td><td>Individual psychotherapy, insight oriented, behavior modifying and/or supportive, in an office or outpatient facility, approx. 45 to 50 min. face-to- face with the patient</td><td>50</td><td>$150.00</td></tr></tbody>
             </table>
<script type="text/javascript">
//<![CDATA[
dHTML.createWidget('t_procedures','TableProcedures','t_procedures',[{type:"Procedure","id":"1","providerID":"1","procedureStatus":"1","code":"90806","codeType":"CPT","default_fee":"150.00","default_duration":"50","units":"UN","code_text_short":"Individual therapy 45-50 minutes.\n","code_text":"Individual psychotherapy, insight oriented, behavior modifying and/or supportive, in an office or outpatient facility, approx. 45 to 50 min. face-to- face with the patient"},{type:"Procedure","id":"2","providerID":"1","procedureStatus":"1","code":"Late Can","codeType":"Billing","default_fee":"150.00","default_duration":"","units":"UN","code_text_short":"Description.\n\n","code_text":""},{type:"Procedure","id":"3","providerID":"1","procedureStatus":"1","code":"90808","codeType":"CPT","default_fee":"280.00","default_duration":"75","units":"UN","code_text_short":"SS","code_text":"Individual psychotherapy, insight oriented, behavior modifying and/or supportive, in an office or outpatient facility, approx. 75 to 80 min. face-to-face with the patient"}]);
//]]>
</script>