HTML Table Tag

Tables consist of <table> element and other related tags. These other tags are nested inside the <table> tag.

The child tags of the <table> elements are as follows:

<caption>
<colgroup>
<thead>
<tfoot>
<tbody>
<tr>

An example would where the <table> tag can be used is:

<table border = "1">
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>

The above code would be rendered as below in the HTML Web Page:

Cell 1 Cell 2

Leave a Reply