HTML Tables

Tables are utilized in HTML documents (web pages) to present tabular data. The HTML tables allow website authors to arrange data or record like text, links, images, other tables, etc. into rows and columns of cells.

In HTML, we create tables using the <table> tag, in conjunction with the <tr> and <td>.

Each set of <tr> tags (opening and shutting tags) represents a row within the table that they're nested in. And each set of <td> tags represents a table data cell among the row that they're nested in.

You can conjointly add table headers using the <th> element.

Breakdown

Here is the breakdown of HTML Table

Table Example

Below example will demonstrate the basic architecture of Table

<!doctype html>  
<html>

    <head>
        <title>Table Example</title> 
    </head>
  
    <body>
        <table>
            <tr>
                <th>Heading</th>
            </tr>
       
            <tr>
                <td>Content</td>
            </tr>
        </table>

    </body>

</html>