<table border="10px" width="500px"(宽度) height="400px"(高度) align="center"(对齐) bgcolor="#FFF0F5"(颜色) cellspacing="10px"(单元格之间的间距) cellpadding=>
<table border="10px" width="500px"(宽度) height="400px"(高度) align="center"(对齐) bgcolor="#FFF0F5"(颜色) cellspacing="10px"(单元格之间的间距) cellpadding=>
<!DOCTYPE html>
<html>
<head>
<title>我是标题</title>
<meta ="Content-Type" content="text/html;charset=utf-8"/>
<!-- utf-8 gbk gb2312 -->
</head>
<body>
<table border="10px" width="500px" height="400px" align="center" bgcolor="#f0f0f0" cellspacing="10px" cellpadding="10px"> <!-- align="center","right,"left" bgcolor="red","#f0f0f0" -->
<tr> <!-- table row table data -->
<td>我是内容</td>
<td>我是内容</td>
<td>我是内容</td>
</tr>
<tr>
<td>我是内容</td>
<td>我是内容</td>
<td>我是内容</td>
</tr>
<tr>
<td>我是内容</td>
<td>我是内容</td>
<td>我是内容</td>
</tr>
</table>
</body>
</html>
202-表格常用属性
<table border="1px" width="500px" height="500px" align="center" bgcolor="red" cellspacing="10px" cellpad'ding="2px"> </table>
cellspacing是单元格之间的间距
cellpadding是单元格中的内容与单元格的间距
<table width="500px" 宽度为500像素
align=“lift/right/center”对齐
bgcolor=“ ”
cellspacing="" 单元格与边框间距
<table border="10px"() width="500"(宽度) height="400"(高度)) align="center" (对齐)bgcolor=""(整个表格颜色) cellspacing="10px"(单元格与表与外边框的间距) cellpadding="10px">(单元格内容与外边框的间距)