OnlineCBT Logo OnlineCBT
HTML Tutorial
HTML · LESSON 24

HTML Tables Introduction

By Ratan Updated: 16 Oct 2026

Build structured data tables using <table>, <tr>, <th>, and <td> elements.

Level: Beginner to Advanced
Duration: ~60 Mins Deep-Dive

1. When to Use HTML Tables

HTML tables (

) are designed specifically for presenting tabular data—information arranged in logical rows and columns (e.g., student marksheet, test schedules, pricing tables, or financial reports). Never use tables for website layout design.

2. Basic Table Anatomy

: Container element wrapping the entire table structure.
  • (Table Row): Defines a horizontal row.
  • (Table Header): Defines a column or row header cell (bold and centered by default).
  • (Table Data): Defines a standard data cell.
    Roll Number Candidate Name Score (Out of 100)
    CBT-101 Rohan Verma 92
    CBT-102 Priya Singh 88

    📝 Live Lesson Practice

    HTML/CSS JavaScript Python C++ C PHP
    ⌨️ Practice Inputs (लाइव इनपुट भरें) (खाली होने पर RED, भरने पर GREEN underline)
    💻 Code Editor (Monaco VS Code Engine)
    👀 Live Preview
    Address Contact

    +91 7877547686

    E-mail

    onlinecbtportal@gmail.com

    Helpline Number

    +91 7877547686


    Click To Download
    Get it on Google Play

    ऐप डाउनलोड करने
    के लिए Google Play पर
    उपलब्ध है

    WhatsApp Chat