th 标签 HTML

th 标签 -- 代表HTML表格中的表头
  • th标签是成对出现的,以<th>开始,</th>结束
  • 属性
    • Common -- 一般属性
    • abbr -- 代表表头的简写
    • axis -- 对单元格在概念上分类
    • colspan -- 一行跨越多列
    • headers -- 连接表格的数据与表头
    • rowspan -- 一列跨越多行
    • scope -- 定义行或列的表头
    • align -- 代表水平对齐方式(left(左对齐) | center(居中对齐) | right(右对齐) | justify)(此属性应该使用CSS实现)
    • valign -- 代表垂直对齐方式(top(顶部对齐) | middle(中部对齐) | bottom(下部对齐) | baseline(基线对齐))(此属性应该使用CSS实现)
  • th是table header cell的缩写
  • 引用网址:http://www.dreamdu.com/xhtml/tag_th/

示例

<table width="80%" border="1">
	<tr> 
		<th>www.dreamdu.com</th>
		<th>.com域名的数量</th>
		<th>.cn域名的数量</th>
		<th>.net域名的数量</th>
	</tr>
	<tr>
		<th>2003年</th>
		<td>1000</td>
		<td>2000</td>
		<td>3000</td>
	</tr>
	<tr>
		<th>2004年</th>
		<td>4000</td>
		<td>5000</td>
		<td>6000</td>
	</tr>
	<tr>
		<th>2005年</th>
		<td>7000</td>
		<td>8000</td>
		<td>9000</td>
	</tr>
</table>

你可能感兴趣的:(html,.net,css,XHTML)