<table> tag is used to design a table.
<tr>, <th>, <td> are the tags used and written inside the <table> tag.
To start the row <tr> tag is used.
<th> tag is defined inside the <tr> tag and its default text style is bold and centered.
Contents to be displayed are written inside the <td> tag, and it is defined inside <tr> tag.
The width attribute is used to set the width of the whole table.
The height attribute is used to set the height of the table.
If the values are given in percentage(%), table size will automatically adjust itself according to the screen size.
The border attribute is used to draw the border line for table.
The cellspacing attribute is used to give space between two cell (<td> tag).
The cellpadding attribute is used to adjust the space between the cell and the contents present in it, by doing so the size of the cell can be changed.
The colspan attribute is used to merge two column cells into one cell.
The rowspan attribute is used to merge two row cells into one cell.
The HTML <caption> tag is used for creating a caption or a title for a table.
There should be only one caption per table.