Tables In HTML

What is the table?

<table> tag is used to create tables in HTML. The table organizes video, text, audio, links, etc. in rows and columns.

Several tags we use to create tags are

<table> <th> <td> </td> </th> </table>.

<th>tag is used to create the table heading and it bolds the heading

<td> tag defines the table data that is present in the table cells.

There are several table properties, such as:

cellpadding : used to create padding in the table.

cellspacing : use to create a margin between one column to another.

table header, body, and footer: It is used to create a table head, body, and footer.

colspan: it is used when we need to merge one column space equal to the columns we required

cowspan: it is used when we need to merge one-row space equal to the rows we required

table background: it is used to set the table background. etc.