<html>
<span style="white-space:pre"> </span><meta content="utf-8">
<span style="white-space:pre"> </span><head>
<span style="white-space:pre"> </span><title style="color:red">表格标志</title>
<span style="white-space:pre"> </span></head>
<span style="white-space:pre"> </span><body>
<!--创建一个表格<bgcolor背景颜色>border边框大小,bordercolor边框颜色,bordercolorlight边框颜色明亮部分border大于1有效bordercolordark边框颜色昏暗部分border大于1才有效,cellspacing设置表格之间空间的大小,cellpadding设置表格边框及其内部内容之间的空间的大小,width设置表格的宽度也可以去总宽度的百分比-->
<span style="white-space:pre"> </span><table border="1" width="80%" bgcolor="yellow" cellpadding="2" bordercolor="#0000FF" bordercolorlight="#7D7DFF" bordercolordark="#0000A0">
<!--<tr标签创建一个表>-->
<span style="white-space:pre"> </span><tr>
<span style="white-space:pre"> </span><th width="33%" colspan="2" valign="bottom">意大利</th>
<span style="white-space:pre"> </span><th width="36%" colspan="2" valign="bottom">英格兰</th>
<span style="white-space:pre"> </span><th width="36%" colspan="2" valign="bottom">西班牙</th>
<span style="white-space:pre"> </span></tr>
<!--第二行-->
<span style="white-space:pre"> </span><tr>
<span style="white-space:pre"> </span><td width="16%" rowspan="3" align="center">AC米兰</th>
<span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th>
<span style="white-space:pre"> </span><td width="17%" align="center">曼联</th>
<span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th>
<span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th>
<span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th>
<span style="white-space:pre"> </span></tr>
<span style="white-space:pre"> </span><tr>
<span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th>
<span style="white-space:pre"> </span><td width="17%" align="center">曼联</th>
<span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th>
<span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th>
<span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th>
<span style="white-space:pre"> </span></tr>
<span style="white-space:pre"> </span><tr>
<span style="white-space:pre"> </span><td width="16%" align="center">佛罗伦萨</th>
<span style="white-space:pre"> </span><td width="17%" align="center">曼联</th>
<span style="white-space:pre"> </span><td width="17%" align="center">纽卡斯尔</th>
<span style="white-space:pre"> </span><td width="17%" align="center">巴塞罗纳</th>
<span style="white-space:pre"> </span><td width="17%" align="center">皇家社会</th>
<span style="white-space:pre"> </span></tr>
<span style="white-space:pre"> </span></table>
<span style="white-space:pre"> </span></body>
</html>
学习的标签有如下
1.<table>....<table>表标签作用为创建一张表属性上边代码的注释有
2.<tr>...</tr>创建表格中的一行有2个属性 align水平对齐拥有left,center,right valign垂直对齐拥有top,middle,bottom属性
3.<td>...</td>创建一行中的一个单元格拥有如下属性with宽度,colspan占有多少列, rowspan占有多少行,nowarp禁止自动断行
4<th>...</th>用来设置表格头