HTML tables organize and display data using rows or columns. Tables are made up of cells that form
at the intersection of rows and columns. Table cells can contain any HTML elements, such as headings, lists, text, images, form elements, and other tables. You can add a title to each table by placing it in front of or after the table.

Tables are no longer used for layout of web pages and layout of individual elements, because this technique does not provide the flexibility of the structure and adaptability of the site, significantly increasing the HTML markup.

The table is created using the paired <table> </table> tag. This tag is a container for table elements and all elements must be inside it.
By default, the table and cells do not have visible borders. Borders are set using the border property.
The spaces between the table cells are removed using the table {border-collapse: collapse;} property.

The width of the table by default is equal to the width of its internal content. To set the width, you need to set a value for the width property
 If the indents and borders are set for table cells, then the width of the table will include the following values:
padding-left and padding-right, border-left width plus border-right width of the last cell in the row. If the width and borders of the cells are specified, then the width of the table will be the sum of the width of the cells plus the border-left width and the border-right width of the last cell in the row.
Rows or rows of a table are created using the <tr> tag. The number of horizontal rows in a table is determined by the number of paired <tr> </tr> tags.
The <th> element creates a column heading - a special cell in which the text is highlighted in bold. The number of header cells is determined by the number of pairs of <th> </th> tags. Attributes colspan, rowspan, headers are available for the element.
The <td> element creates the table cells inside which the table data is placed. The paired <td> </td> tags, located in the same row, determine the number of cells in the row of the table. The number of pairs of <td> cells must be equal to the number of pairs of <th> cells. Attributes colspan, rowspan, headers are available for the element.