I'm having a lot of errors when I run W3C validator on an html page with jquery code. This is an example of the jquery code I'm using:
jQuery(document).ready(function($)
{
/*<![CDATA[*/
$("body").append("<div id='mainBody'>");
$("#mainBody").append("<h1 align='center'>SCORM Authoring Tools");
$("#mainBody").append("<table id='myTable' border='1' />");
$("#myTable").append("<tr id='tr1' />");
/*]]>*/
});
This is an example of these errors:
Line 4, Column 267: end tag for element "TD" which is not open
append("<td class='rows'>Product</td>");
$("#tr1").append("<td class='rows'>…
I'm using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">;
Thanks