Page 51 - TP_Prime_V2.2_Class7
P. 51
</DL>
</BODY>
</HTML> HTML—LISTS AND TABLES
I had prepared my school time table using table in Word document. Can we
do the same in HTML? 49
Yes! We can create table in HTML by using the <TABLE> tag. Let's learn how
to create table in HTML.
Creating Tables
Tables represent the data in the form of rows and columns. In HTML5, a table is created
by using the <TABLE> tag. The <TABLE> tag should be defined inside the <BODY> tag. It is a
container tag. A table can be created by using the following child tags of the <TABLE> tag:
<TR>: The <TR> stands for Table Row, and is used to start a row. It ends up with </TR>.
It is a container tag.
<TD>: The <TD> tag stands for Table Data. This tag is used for defining table data, that
is, the data of the cells.
<CAPTION>: This tag is used for defining the title of the table.
<TH>: This tag is used for defining table headings.
Following is an example of a table:
Table: Student
Roll No. Name Grade Gender
1 Aarav B M
2 Gauransh A M
3 Himakshi A F
4 Rakshit B M

