No announcement


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.



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

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.