Defines a table used for tabular data.. The HTML <table> tag is used for defining a table. The <table> tag contains other tags that define the structure of the table.
Tables consist of the <table> element as well as other table-related elements. These other elements are nested inside the <table> tags to determine how the table is constructed.
The children of a <table> element must be, in order:
Each <tr> element represents a row in the table. A row can have one or more <td> or <th> elements, which determine the columns in the table. Specifically, <td> represents table data and <th> represents a table header.
<table> <tr> <th>Name</th> <th>Nationality</th> </tr> <tr> <td>John</td> <td>English</td> </tr> <tr> <td>Pedro</td> <td>Portuguese</td> </tr> </table>