Now, we will learn about table in html. Yesterdey, we have learn about
tags html and
format html, do you still remember?
This section lists the tags often used with HTML tables: <table>, <tr>, and <td>.
<table>
The <table> tag specifies the presence of a table. This is very often used in conjunction with the <tr> and the <td> tags. The following attributes are commonly used to define the properties of this table:
width: This specifies the width of the table. Can be specified in pixels or in relative terms (for example, 100%).
border: This specifies whether the table will have a border. The number indicates the thickness of the border.
cellspacing: The amount spacing between the cell wall and the cell border. The area enclosed by the cell walls are the maximum amount of area that text can be displayed in a cell.
cellpadding: The amount padding between cells and the each cell wall in a table.
bgcolor: This specifies the background color for this table. The color value may be specified as the color name or the six-character color code.