XHTML and CSS Tutorial - 14 - Table width, cellpadding, and cellspacing


<!doctype html>
<html>
<head>
</head>
<body>

<table border =“1” width = “500”>
<tr>
<th>Type</th>
<th>Reason</th>
<tr> 
<td> Cat people</td>
<td>17 cats is just too many </td>
</tr>
<tr>
  <td> Loud People </td>
<td> Sure turn that music up, its only 3am </td>
</tr>
</table>
</body>
</html> 
<!doctype html>
<html>
<head>
</head>
<body>

<table border =“1” width = “100%”>
<tr>
<th>Type</th>
<th>Reason</th>
<tr> 
<td> Cat people</td>
<td>17 cats is just too many </td>
</tr>
<tr>
  <td> Loud People </td>
<td> Sure turn that music up, its only 3am </td>
</tr>
</table>
</body>
</html> 


<!doctype html>
<html>
<head>
</head>
<body>

<table border =“1”cellpadding“10”>
<tr>
<th>Type</th>
<th>Reason</th>
<tr> 
<td> Cat people</td>
<td>17 cats is just too many </td>
</tr>
<tr>
  <td> Loud People </td>
<td> Sure turn that music up, its only 3am </td>
</tr>
</table>
</body>
</html> 
<!doctype html>
<html>
<head>
</head>
<body>

<table border =“1”cellpadding = “10”>
<tr>
<th>Type</th>
<th>Reason</th>
<tr> 
<td> Cat people</td>
<td>17 cats is just too many </td>
</tr>
<tr>
  <td> Loud People </td>
<td> Sure turn that music up, its only 3am </td>
</tr>
</table>
</body>
</html> 





Comments