HTML Table Generator
Generate HTML tables with configurable rows and columns.Runs in this tab.⌘ ↵ runs it
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>| Header 1 | Header 2 | Header 3 |
|---|---|---|
How to use HTML Table Generator
- Set Rows and Columns. The page opens at 3 and 3. Header Row is on, which adds a header row above those body rows.
- Type in the cells. An empty header cell is written as Header 1, Header 2, and so on. An empty body cell is an empty td.
- Copy the Generated HTML. Turn Header Row off if the first row should be a body row.
The HTML this grid emits
The page opens at 3 columns, 3 body rows, and Header Row on. An empty header cell is written as Header 1, Header 2, and so on. An empty body cell is <td></td>.
Set Rows to 1, leave Header Row on, and fill the header with Name, Qty, Price and the body row with Widgets, 4, 12.50:
<table>
<thead>
<tr>
<th>Name</th>
<th>Qty</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Widgets</td>
<td>4</td>
<td>12.50</td>
</tr>
</tbody>
</table>
A cell containing a < b & c is escaped:
<td>a < b & c</td>
A double quote in a cell becomes ".
Turn Header Row off and the first row is a body row. There is no thead:
<table>
<tbody>
<tr>
<td>Name</td>
<td>Qty</td>
<td>Price</td>
</tr>
</tbody>
</table>
You type or paste into the grid, and the page emits that table. It does not import a spreadsheet, and it does not read an existing HTML page back into the cells. The markup has no class, border, caption, scope, colspan, or tfoot.
Next step
Turn a click-through into an interactive demo
AtriumKit records your web app once in Chrome and turns every click into a step of a demo you can embed or share. There’s a free plan.
Try AtriumKit freeQuestions
How do I create an HTML table?
Can this turn a table into HTML, or HTML into a table?
Does the generator escape cell text?
Comments
More in Code Generators
- Markdown to HTML Converter
- HTML to Markdown Converter
- JSON to TypeScript Converter
- JSON to C# Converter
- JSON to Kotlin Converter
- JSON to Swift Converter
- JSON to Rust Converter
- JSON to PHP Converter
Comments