table & Tag

The list of HTML tags used to display data in the tabular form include

TagDecsription

<table>

It defines a table

<tr>

This tag defines a row in a table

<th>

It defines a header cell in a table

<td>

This is used to define a cell in a table

<caption>

It defines the table caption

<colgroup>

It specifies a group of one or more columns in a table for formatting

<col>

This is used with <colgroup> element to specify column properties for each column

<tbody>

This tag is used to group the body content in a table.

<thead>

It is used to group the header content in a table

<tfooter>

It is used to group the footer content in a table



(!DOCTYPE html> (html> (head> (style> table, th, td { border: 1px solid black; } (/style> (/head> (body> (table > (tr> (th> Roll No. (/th> (th> Student Name (/th> (th> Subject Name (/th> (/tr> (/table> (/body> (/html>