My website

Table Codes

Home - Frequently Used Codes - Table Codes
Table Codes

Text 1
Text 2

<table height="100" cellspacing="1" cellpadding="1" width="575" border="1">
            <td bordercolor="#000000" bgcolor="#ffff00">Text 1</td>
            <td bordercolor="#000000" bgcolor="#0000ff">Text 2</td>

Some properties of a table code:
border table border, 0 means no border
<tr></tr> row
<td></td> column
bordercolor border color of column
bgcolor background color of column or row
height height of table
width width of table
Hint: You should add columns (<td></td>) in the rows (<tr></tr>). If you add two columns in one of the rows, you should add two columns in the other row, too.