No announcement
 

Tables

Tables are used to organize data into rows and columns. The structure of a table consists of the <table> element as the container, <tr> for table rows, and <td> for table cells within each row.

Example:

table.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>My Webpage</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
        </tr>
        <tr>
            <td>Row 1, Column 1</td>
            <td>Row 1, Column 2</td>
        </tr>
        <tr>
            <td>Row 2, Column 1</td>
            <td>Row 2, Column 2</td>
        </tr>
    </table>
</body>
</html>

Output
Header 1Header 2
Row 1, Column 1Row 1, Column 2
Row 2, Column 1Row 2, Column 2

Table headings can be added using the <th> tag instead of <td>, and the table can be further customized using CSS or additional attributes.