-
In HTML Table will be created by using
<table>table data goes here..</table>
tag. -
We know that table contains Rows and Columns, those are defined with tr and td.
-
<tr>
stands for Table Row which is used to make a Row. -
<td>
stands for Table Data that is used to make a Column. -
Table heading can be defined by using
<th>Name</th>
-
Cellpadding and Cellspacing is used to adjust the white space in table cell.
-
Cellspacing defines the width of the border. cellspacing="0"
cellpadding="15"
-
Cellpadding represents the distance between cell borders and the content within.
<caption> Books Information</caption>
tag will serve as a title and show at the top of the table.
Example HTML Table Code:
OUTPUT: