TOP CATEGORIES

×

Which of these tags are all table tags?

S

Shwati Rana

All Tags Used in HTML Table

Here is the list of all tags which are used in HTML, the <table> to create a table structure to organize data into rows and columns. It is one of the fundamental tags for presenting tabular data on a web page.

Basic Structure of HTML Table

<table>

    <tr>

        <th>Header 1</th>

        <th>Header 2</th>

    </tr>

    <tr>

        <td>Row 1, Cell 1</td>

        <td>Row 1, Cell 2</td>

    </tr>

    <tr>

        <td>Row 2, Cell 1</td>

        <td>Row 2, Cell 2</td>

    </tr>

</table>

Used Table Tags in Example

The <table> tag represents the entire table and inside the <table> element, we use the <tr> (table row) tag that defines each row of the table, and within each <tr> element, we use the <th> (table header) tag to define table header cells, and the <td> (table data) tag to define regular table cells. Actually, The <th> tags are typically used in the first row (header row) to represent column headers, while the <td> tags are used in subsequent rows to represent data cells.

1 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)