TablesHow to create tables in an
Table bordersHow to
specify different table borders.
Tables are defined with the <table> tag.
A table is divided into rows (with the <tr> tag), and each row is divided into data cells
(with the <td> tag). td stands for "table data," and holds the content of a data cell. A
<td> tag can contain text, links, images, lists, forms, other tables, etc.
Output Will Be::
If you do'nt specify a border attribute, the table will be displayed without borders. Sometimes
this can be useful, but most of the time, we want the borders to show.
To display a table with borders, specify the border attribute:
Header information in a table are defined with the <th> tag.
All major browsers will display the text in the <th> element as bold and centered.
Tables without bordersHow to
create tables without borders.
Table headersHow to create
Table with a captionHow to add a
caption to a table.
Table cells that span more than one
row/columnHow to define table cells that span more than one row or one column.
Tags inside a tableHow to
display elements inside other elements.
Cell paddingHow to use
cellpadding to create more white space between the cell content and its borders.
Cell spacingHow to use
cellspacing to increase the distance between the cells.
The frame attributeHow to
use the "frame" attribute to control the borders around the table.
Your Query was successfully sent!