HTML Table

By Prof. Fazal Rehman Shamil
Last modified on October 23rd, 2020

What is a table?

The table contains rows and columns to represent data.

How to put a table in HTML?

Download Code

table in html


table in hypertext markup language


Statement 4: <tr> is for table row

Statement 5: <td> is for table column

First Row:

Statement 4: Starting of first row

Statement 6: Ending of first row

Second Row:

Statement 8: Starting of second row

Statement 11: Ending of second  row


1 2 3
apple banana

Video Lecture

Exercise of HTML Tables

Write the HTML code for the following interface.

A1 B1 C1 D1
9-10-am 10-aa am 11-12-am 1-2 pm 2-3pm 3-34pm 4-5pm 5-6pm 6-7pm 7-8pm 8-9 pm
E1 Monday D A B C
Tuesday E F
thursday T4TUTORIALS 002 I G
H1 friday research H



Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.