Enterprise Verified
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Tabular Data 6 min read • Chapter 16 of 32

HTML Tables

HTML tables allow web developers to arrange data into rows and columns: <table>, <tr>, <th>, <td>.

Use HTML tables for tabular data only (e.g. financial balance sheets, tax slabs). Do not use tables for page layout.

Example

<!DOCTYPE html>
<html>
<head>
    <style>
        table { border-collapse: collapse; width: 100%; max-width: 400px; font-family: sans-serif; }
        th, td { border: 1px solid #cbd5e1; padding: 8px 12px; text-align: left; }
        th { background: #04aa6d; color: white; }
    </style>
</head>
<body>
    <h3>Corporate Tax Slabs</h3>
    <table>
        <tr><th>Regime</th><th>Tax Rate</th></tr>
        <tr><td>New Regime (115BAC)</td><td>Concessional Slabs</td></tr>
        <tr><td>Old Regime</td><td>Deduction Based</td></tr>
    </table>
</body>
</html>
Try it Yourself >> Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php

Community Q&A & Discussion

No questions yet. Be the first to start the discussion!
Enterprise Operations Suite

Streamline Employee Payroll & Attendance Operations

Eliminate manual spreadsheet errors. Integrate automated attendance tracking, EPF/ESI statutory calculations, and custom GST invoices.

Copied!

AI Learning Assistant

Ready to explain & guide

Hello! I am your MBS Digital AI Tutor. Ask me to explain concepts, review code, or suggest debugging steps.

Quick Starters:
AI Tutor is thinking...