Html Tables Basic — Free Html Tutorial
Learn Html Tables Basic in Html with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.
TL;DR: Learn Html Tables Basic in Html with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.
Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated
Html Tables Basic in Html
Tables organize data: <table>, <tr> (row), <th> (header), <td> (cell). <thead>, <tbody>, <tfoot> organize large tables.
border-collapse: collapse in CSS removes double borders. Use padding for cell spacing.
Never use tables for page layout — only for data. Use CSS Grid/Flex for layouts.
Html Tables Basic — Syntax
<table>
<thead>
<tr><th>Column 1</th><th>Column 2</th></tr>
</thead>
<tbody>
<tr><td>Data</td><td>Data</td></tr>
</tbody>
</table>
Learn Html Tables Basic step by step with Syllab's free interactive Html tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Html course →