HTML标记【表格标题标记】!

表格标题标记——caption
<caption>标记用于建立表格的标题,并可利用align属性
<caption align=top或bottom>
例:
<html>
<body>
<table border=3>
<caption align=top>89学年下学期课程<caption>
<tr align=center><th>日期</th><th>课程名称</th><th>必选修</th></tr>
<tr align=center><td>星期一</td><td>统计学</td><td>必修</td></tr>
<tr align=center><td>星期二</td><td>生产管理</td><td>必修</td></tr>
<tr align=center><td>星期三</td><td>经济学</td><td>必修</td></tr>
<tr align=center><td>星期四</td><td>商务英语</td><td>必修</td></tr>
<tr align=center><td>星期五</td><td>组织行为</td><td>选修</td></tr>
</table>
</body>
</html>
=======================================================
表格的高级设计
嵌套表格的建立
<html>
<body>
<table border=3 width=70%>
<caption align=top>中山大学</caption>
<tr><th>

<table border=2>
<caption align=top>89学年下学期课程表</caption>
<tr>
<th>日期</th><th>课程名称</th><th>必选修</th>
</tr>
<tr>
<td>星期一</td><td>统一学</td><td>必修</td>
</tr>
<tr>
<td>星期二</td><td>生产管理</td><td>必修</td>
</tr>
<tr>
<td>星期三</td><td>经济学</td><td>必修</td>
</tr>
<tr>
<td>星期四</td><td>商用英语</td><td>必修</td>
</tr>
<tr>
<td>星期五</td><td>组织行为</td><td>选修</td>
</tr>
</body>
</html>
================================================
环绕表格文字格式的控制
例:
<html>
<body>
<table border=2 width=30% align=right>
<caption align=top>南开大学</caption>
<tr><th>

<table border=2>
<caption align=top>89学年下学期课程表</caption>
<tr>
<th>日期</th><th>课程名称</th><th>必选修</th>
</tr>
<tr>
<td>星期一</td><td>统计学</td><td>必修</td>
</tr>
<tr>
<td>星期二</td><td>生产管理</td><td>必修</td>
</tr>
<tr>
<td>星期三</td><td>经济学</td><td>必修</td>
</tr>
<tr>
<td>星期四</td><td>商用英语</td><td>必修</td>
</tr>
<tr>
<td>星期五</td><td>组织行为</td><td>必修</td>
</tr>
</table>

</table>
右表是南开大学教务处,企业管理学系,<br>
五年级课程时间表,授课教室管理学院0042室<br>
授课时间am8:30至pm5:00。若有任何疑问请同学到五楼办公室询问。<br>
</body>
</html> 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值