table Tag in HTML


A simple HTML table, containing two columns and two rows:  

Definition and Usage

The <table> tag defines an HTML table.

An HTML table consists of one <table> element and one or more <tr>, <th>, and <td> elements.

The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.

An HTML table may also include <caption>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.

Global Attributes

The <table> tag also supports the Global Attributes in HTML.

Event Attributes

The <table> tag also supports the Event Attributes in HTML.

Related Articles