What HTML is
An HTML table is a table element containing thead and tbody, with th cells for headers and td cells for data.
Web pages, email templates and anything pasted into a CMS.
What JPEG is
A lossy image format designed for photographs, where losing a little detail in a gradient is invisible.
Places that will not accept a PNG upload.
What changes when you convert HTML to JPEG
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.
The same render as PNG, saved as JPEG. It is the worse choice for a table and it is worth knowing why: JPEG compresses by discarding detail around sharp edges, and a table is nothing but sharp edges. Letters get a visible halo and hairline rules blur. It also has no transparency, so a background colour is always painted rather than left clear.
What carries over from HTML to JPEG
HTML records 3 things about a table that JPEG has no way to hold.
HTML can hold a value that is itself a list or an object. JPEG has only flat cells, so nested values are flattened into one cell rather than being spread across columns.
Nothing in JPEG records that the first row is a header. It is drawn at the top and looks like one, which is all that is left of the distinction.
JPEG is the end of the line for this data. Reading the table back out of it is a separate and much harder problem than writing it, so keep the HTML if you will need the values again.