HTML初學者指南(四)(轉)

post0發表於2007-08-15
HTML初學者指南(四)(轉)[@more@]

 

這裡是一個巢狀列表的例子:

  • A few New England states:

    • Vermont

    • New Hampshire

    • Maine

  • Two Midwestern states:

    • Michigan

    • Indiana

這個巢狀列表的顯示:

A few New England states:

Vermont

New Hampshire

Maine

Two Midwestern states:

Michigan

Indiana

預排格式文字Preformatted Text

 標記 (表示 "preformatted") 可以產生固定寬度的字型. 該標記同時使空格,新行,和製表鍵 tabs 有效 (多個空格顯示為多個空格, 原始檔中的換行也在瀏覽器中產生換行). 這對於程式清單和其他一些情況是很有用的. 例如, 下面的行: 

#!/bin/csh

cd $SCR

cfs get mysrc.f:mycfsdir/mysrc.f

cfs get myinfile:mycfsdir/myinfile

fc -02 -o mya.out mysrc.f

mya.out

cfs save myoutfile:mycfsdir/myoutfile

rm *

顯示為:

#!/bin/csh

cd $SCR

cfs get mysrc.f:mycfsdir/mysrc.f

cfs get myinfile:mycfsdir/myinfile

fc -02 -o mya.out mysrc.f

mya.out

cfs save myoutfile:mycfsdir/myoutfile

rm *

 標記可以帶一個寬度屬性 WIDTH ,指明一行中最多允許的字元數. WIDTH 同時通知瀏覽器選擇一個合適的字型以及文字的縮排. 

 作用的部分中也可以加超鏈. 但是其他的 HTML 標記應該避免在 
 的區間中使用. 

注意,由於, 和 & 在 HTML 檔案中有特殊含義, 在你輸入這些字元的時候必須使用它們的轉義序列 (分別為<, >, 和 &) . 詳細內容參見轉義序列 .

大範圍引用Extended Quotations

使用
標記可以在螢幕上用分離的塊顯示大段的引用. 多數瀏覽器通常改變引用部分的頁邊界,以和周圍的文字區分開.

在下面的例子中:

Omit needless words.

Vigorous writing is concise. A sentence should contain no

unnecessary words, a paragraph no unnecessary sentences, for the

same reason that a drawing should have no unnecessary lines and a

machine no unnecessary parts.

--William Strunk, Jr., 1918

顯示結果為:

Omit needless words.

Vigorous writing is concise. A sentence should contain no unnecessary words, a paragraph no unnecessary sentences, for the same reason that a drawing should have no unnecessary lines and a machine no unnecessary parts.

--William Strunk, Jr., 1918

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-957413/,如需轉載,請註明出處,否則將追究法律責任。

相關文章