2021.4.15笔记 HTML 标签

格式化

标签描述例子
<b>定义粗体文本啦啦啦
<big>定义大号字啦啦啦
<em>定义着重文字啦啦啦
<i>定义斜体字啦啦啦
<small>定义小号字啦啦啦
<strong>定义加重语气啦啦啦
<sub>定义下标字啦啦啦
<sup>定义上标字啦啦啦
<ins>定义插入字啦啦啦
<del>定义删除字啦啦啦

表格

表格描述
<table>定义表格
<caption>定义表格标题
<th>定义表格的表头
<tr>定义表格的行
<td>定义表格的单元
<thead>定义表格的页眉
<tbody>定义表格的主体
<tfoot>定义表格的页脚
<col>定义表格的列属性
<table border="1">
	<caption>我是一个人</caption>
	<colgroup>
		<col style="background-color:yellow" />
		<col style="background-color:green" />
		<col style="background-color:red" />
	</colgroup>
	<thead>
		<tr>
			<th>属性</th>
			<th>年龄</th>
			<th>学历</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</tfoot>
	<tbody>
		<tr>
			<td></td>
			<td></td>
			<td></td>
		</tr>
	</tbody>
</table>

其中thead、tfoot、tbody标签可以在网页加载时一部分一部分加载,而不需要等全部加载完毕才可以显示表格,一般将tfoot放在tbody前面,以便显示表尾。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值