HTML Table Code

edited January 2016 in Web Development
This code
<TABLE border="1">
<TR>
<TD>Data 1</TD>
<TD>Data 2</TD>
</TR>
<TR>
<TD>Data 3</TD>
<TD>Data 4</TD>
</TR>
<TR>
<TD>Data 5</TD>
<TD>Data 6</TD>
</TR>
</TABLE>
Will display the table below
Data 1 Data 2
Data 3 Data 4
Data 5 Data 6
This code with padding...
 <table border="1" cellpadding="15">
<tbody><tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
<tr>
<td>Data 3</td>
<td>Data 4</td>
</tr>
<tr>
<td>Data 5</td>
<td>Data 6</td>
</tr>
</tbody></table>
Will display the table below
Data 1 Data 2
Data 3 Data 4
Data 5 Data 6

Sign In or Register to comment.