Beruflich Dokumente
Kultur Dokumente
LESSON 101
HTML TABLES
Tables
</td>
<table border=1>
<tr>
<td> Row 1a </td>
<td> Row 1b </td>
</tr>
<tr>
<td> Row 2a </td>
<td> Row 2b </td>
</tr>
</table>
<br>
<table border=1>
<tr>
<td> Row 1a </td>
<td> Row 1b </td>
</tr>
</table>
Add a hyperlink to td
<table border=1>
<tr bgcolor=cyan>
<th> Website</th>
<td>
<a href=https://www.facebook.com/>
Facebook
</a>
</td>
</tr>
</table>
<table border=1>
<tr>
<th> Website</th>
<td background=pink.gif>
<a
href=https://www.facebook.com/>
Facebook
</a></td>
</tr>
Cell spacing
<table cellspacing=10 height=50
width=400 border=1 >
<tr>
<th align=center > Website</th>
<td align=center> Facebook </td>
</tr>
</table>
Cell Padding
Basic Tables
CELLSPACINGcontrols the
space between table cells. Alt
hough there is no official defa
ult, browsers usually use a de
fault of 2.
<table cellspacing=5">
CELLPADDINGsets the amount
of space between the content
s of the cell and the cell wall.
The default is 1.
<table cellpadding="10">
Border
Table Attributes
<table width=400">
Height-