HTML Tables

Tables are a very important part of the web page and are widely used. Tables are defined with a <table> tag. To divide a table into the rows, <tr> tag is used. <td> (short for “table data”) tag is used for subdividing rows into cells. Cells may contain various content, like texts, images, tables or forms.
Example:
Border attribute is necessary to define table borders. If this attribute is missing, the table will be displayed without borders.
Example:
Table headings are defined with the help of (th) tag.
Example:
*Important note: in case the table contains an empty cell, it will be displayed without borders in most browsers. To make the border visible for an empty cell, add &nbsp (a non-breaking space) to a cell.
Example:
HTML Links
HTML Images
HTML Lists
HTML Forms