HTML Tables

Tables are matrix of rows and columns.

Tables are defined with the <table> tag.

Tables are divided into table rows with the <tr> tag and rows are divided into table data with the <td> tag. A table row can also be divided into table headings with the <th> tag. By default, all major browsers display table headings as bold and centered.

Table Borders

The default table doesn't have any borders around it. If you'd like to add borders, use attribute border with the table element.

However, this is a primitive way to add a border to a table. A better way to accomplish this task is by using CSS.

Subscribe for Free Updates

Please enable the javascript to submit this form