
實施範例14
14.在每個分區內容開端以標題標示
這項技巧目的是利用分區標題來傳達內容的結構。標題標記可用於:
- 指示主要內容開始;
- 標記在主要內容裡的分區標題;
- 劃分不同的導航區域;
- 標記用作標題的圖像文字。
範例:以標題說明整個內容的組織
在這個例子裡,標題標記是用作識別導航和主要內容區域。
範例代碼:
<!-- Logo, banner graphic, search form, etc. -->
<h2>Navigation</h2>
<ul>
<li><a href="about.htm">About us</a></li>
<li><a href="contact.htm">Contact us</a></li>
...
</ul>
<h2>All about headings</h2>
<!-- Text, images, other material making up the main content... -->