首页 - 电子商务 - 伴随着Web标准发展(5)  
  关于我们  
网站建设
网站推广
电子商务
联系我们

伴随着Web标准发展(5)

2007-10-12 16:59:53

强调

<em> 是用作强调的,<strong>是用作重点强调的。 大部分浏览器用斜体显示强调的内容,用粗体来显示重点强调的内容,然而,这是没有必要的,如果是为了确定强调内容的显示方式,最好的方法就是使用CSS来定义他们的表现。当你想要的只是视觉上的效果时,就不要使用强调了。

例如:
<p><em>强调</em> 的文本通常用斜体显示,
然而, <strong>特别强调</strong> 的文本通常以粗体显示。</p>

强调 的文本通常用斜体显示, 然而, 特别强调的文本通常以粗体显示。

表格

XHTML中的表格不应用来布局。然而如果是为了标记列表的数据,就应该使用表格了。为了使数据表格有更强的访问性,了解和使用各种构造表格的组件就很重要了。比如表格标题 (<th>)、摘要(summary 属性)和首部说明 ( <caption>标签).

例如:
<table class="举例" summary="1999年到2003年,列表显示中国的平均人口增长率。">
<caption>中国的年均人口的增长, 1999-2003</caption>
<thead>
<tr>
<td>&#160;</td>
<th scope="col">1999</th>
<th scope="col">2000</th>
<th scope="col">2001</th>
<th scope="col">2002</th>
<th scope="col">2003</th>
</tr>
</thead>
<tbody>
<tr>
<th>人口</th>
<td scope="row">8 861 426</td>
<td scope="row">8 882 792</td>
<td scope="row">8 909 128</td>
<td scope="row">8 940 788</td>
<td scope="row">8 975 670</td>
</tr>
<tr>
<th>增长</th>
<td scope="row">7 104</td>
<td scope="row">21 366</td>
<td scope="row">26 368</td>
<td scope="row">31 884</td>
<td scope="row">34 882</td>
</tr>
</tbody>
</table>
中国的年均人口的增长, 1999-2003
  19992000200120022003
人口 8 861 426 8 882 792 8 909 128 8 940 788 8 975 670
增长 7 104 21 366 26 368 31 884 34 882

想了解更多的关于表格及其使用的细节, 请参阅Tables in HTML documentsHTML Techniques for Web Content Accessibility Guidelines 1.0.

相关文章:
  • SimpleQuiz

    一个很好的资源,告诉您如何用语义化的方法来标记。

责任编辑:
相关文章
 
联系电话:021-51872701 51302668 51302669 上海旭强信息科技有限公司 版权所有