Need to move a spreadsheet table from Excel or Google Sheets into a web page or email as HTML? Here's how to do it without typing every cell's tags.
A spreadsheet table is really tab-delimited text
Copying a cell range from a spreadsheet puts plain text on the clipboard, with each cell separated by a tab character (\t) and each row by a newline. Parsing on that structure lets you rebuild it as a <table>/<tr>/<td> structure.
Deciding whether the first row is a header
If the data has a title row, marking the first line as <thead>/<th> and the rest as <tbody>/<td> produces a semantically correct table.
Common use cases
This is handy for dropping a spec comparison table into a blog post, adding a data table to an email newsletter (email clients have limited CSS support, so plain table tags with inline styles are the safe choice), or quickly adding a table to a static site.