HTML5表格标记

发布时间:2020-07-15 09:10:22 作者:A追途
来源:网络 阅读:477

表格标记:<table></table>、<tr></tr>、<td></td>、<th></th>、<caption></caption>

<!--table作为一个表格的容器-->
table参数:
<table width=“” border=“” cellspacing=“” cellpadding=“” align=“” bgcolor=“” bordercolor=“” cols=“”></table>

<!--tr表格的行-->
<!--td表格的单元格,既列-->
<!--th表格中的字体加粗-->
<!--caption标题行-->
代码:
<table width="400" border="1" cellspacing="2" cellpadding="2" align="center" oninvalid="top" background=""
bgcolor="aqua" bordercolor="red" bordercolordark="blue" cols="2">
<table>

<caption>标题行:php是世界上最好的语言</caption>

<tr>
    <td colspan="2" align="center"> 
    <strong>合并两栏</strong>
    </td>
</tr>

<tr>
    <td>第一栏第一行</td>
    <td>第二栏第一行</td>
</tr>

<tr>
    <td>第一栏第二行</td>
    <td>第二栏第二行</td>
</tr>

</table>
推荐阅读:
  1. html5 的 details 标记 ,summary标记,
  2. HTML5的表单标记

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

php 网页入 html

上一篇:怎么将c语言转换成汇编语言

下一篇:什么是ASP.NET WebPages 表单

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》