Given the following HTML code, why are you getting the error message:
Validation (HTML5): The 'th' element cannot be nested in an element table
<table> <th>ID</th> <th>text header</th> <tr> <td>7</td> <td>text</td> </tr> </table>
You cannot have a <th> element outside of <tr> , let's say the following snippet
<th>
<tr>
<table> <tr> <th>ID</th> <th>text header</th> </tr> <tr> <td>7</td> <td>text</td> </tr> </table>
<th> Context of use https://developer.mozilla.org/en/docs/Web/HTML/Element/th
Allowed Parent ElementsA <tr> .
Allowed Parent Elements
A <tr> .
Source: https://habr.com/ru/post/970275/More articles:gdb seg character reading errors - c ++The read API API header value in the controller constructor - c #How can I use ec2.py and localhost at the same time - amazon-web-servicesBootstrap-Switch options do not take effect - jqueryUsing GZipStream to compress empty input results in an invalid gz file in C # - c #Elastic search TransportClient - javaXamarin.Android JSON.Net firmware failed on 4.2.2 only for the device. Exception TimeZoneNotFound - c #Sending a notification from an RDS PostgreSQL instance (without pg_notify)? - triggersHash code as a key in a key set - c #NullReferenceException Json.NET Xamarin.Android android 4.3 - monoAll Articles