Defining HTML Tables

The HTML tables allow web authors to arrange data like text, images, links, other tables, etc. into rows and columns of cells.

Creating A Basic table

A basic Html table consists of the following tags:

1. Table tag:<table>
2. Row tag:<tr>
3. Cell tag:<td>

Constructing an HTML table consists of describing the table between the beginning table tag and the ending table table tag. Also we can add css styles to the table, thus we can make different styles of tables . The HTML tables are created using the <table> tag in which the <tr> tag is used to create table rows and <td> tag is used to create data cells.<th> tag is used to make heading for a table.Following figure indicate a simple table using <td> , <tr> , <th> , <tbody> , <table> tags.


1.<table> element is used to define a table.
2.Use the CSS border property to define a border
3.The colspan attribute is to make a cell span many columns
4.Use the rowspan attribute to make a cell span many rows.
5.HTML <caption> element is to define a table caption.

Jesna N Scaria

Articles : 32

I am a Software Developer at Leedhar Technologies
India India