您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

html caption标签怎么用

2025/12/31 2:46:22发布26次查看
html caption标签用于定义表格标题,caption标签必须紧随table标签之后,您只能对每个表格定义一个标题,通常这个标题会被居中于表格之上。
caption是什么标签?html caption标签怎么用?
作用:定义表格标题。
说明:
caption 标签必须紧随 table 标签之后。您只能对每个表格定义一个标题。通常这个标题会被居中于表格之上。
注释:
在 html 4.01 中,caption 元素的 align 属性是不被赞成使用的。在 xhtml 1.0 strict dtd 中,caption 元素的 align 属性是不被支持的。
html caption标签使用示例
<html><body><h4>这个表格有一个标题,以及粗边框:</h4><table border="6"><caption>我的标题</caption><tr> <td>100</td> <td>200</td> <td>300</td></tr><tr> <td>400</td> <td>500</td> <td>600</td></tr></table></body>
效果:
以上就是html caption标签怎么用的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product