HTML - Table Borders

Overview

Estimated time: 15–25 minutes

Prefer CSS for borders; keep HTML semantic.

Example (structure only)

<table class="tbl">
  <tr><th>A</th><th>B</th></tr>
  <tr><td>1</td><td>2</td></tr>
</table>

Style in CSS (covered in CSS tutorial): .tbl{border-collapse:collapse}, .tbl td, .tbl th{border:1px solid #ccc}