An HTML table is a table element containing thead and tbody, with th cells for headers and td cells for data.
Who uses it
Web pages, email templates and anything pasted into a CMS.
Reading HTML
The first table in the markup is used. Cell contents are stripped of inline tags and entities are decoded, so <td><b>Total</b> </td> arrives as Total. Nested tables inside a cell are not descended into.
Writing HTML
Semantic markup: a real thead, a real tbody, th for the header row. Angle brackets and ampersands in your data are escaped, so a value like <script> is written safely and shows as text on the page.