|
|
@ -175,15 +175,24 @@ used to denote HTML entities. If you want to use them as literal |
|
|
|
characters, you must escape them as entities, e.g. <code>&lt;</code>, and |
|
|
|
characters, you must escape them as entities, e.g. <code>&lt;</code>, and |
|
|
|
<code>&amp;</code>.</p> |
|
|
|
<code>&amp;</code>.</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>在 HTML 文件中,有兩個字元需要特殊處理: <code><</code> 和 <code>&</code> 。 <code><</code> 符號用於起始 |
|
|
|
|
|
|
|
標籤,<code>&</code> 符號則用於標記 HTML 實體,如果你只是想要使用這些符號,你必須要 |
|
|
|
|
|
|
|
使用實體的形式,像是 <code>&lt;</code> 和 <code>&amp;</code>。</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>Ampersands in particular are bedeviling for web writers. If you want to |
|
|
|
<p>Ampersands in particular are bedeviling for web writers. If you want to |
|
|
|
write about 'AT&T', you need to write '<code>AT&amp;T</code>'. You even need to |
|
|
|
write about 'AT&T', you need to write '<code>AT&amp;T</code>'. You even need to |
|
|
|
escape ampersands within URLs. Thus, if you want to link to:</p> |
|
|
|
escape ampersands within URLs. Thus, if you want to link to:</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><code>&</code> 符號其實很讓寫作網路文件的人很困擾,如果你要打 'AT&T' ,你必須要寫成 |
|
|
|
|
|
|
|
'<code>AAT&amp;T</code>' ,你還必須要轉換網址內的 <code>&</code> 符號,如果你要連結到:</p> |
|
|
|
|
|
|
|
|
|
|
|
<pre><code>http://images.google.com/images?num=30&q=larry+bird |
|
|
|
<pre><code>http://images.google.com/images?num=30&q=larry+bird |
|
|
|
</code></pre> |
|
|
|
</code></pre> |
|
|
|
|
|
|
|
|
|
|
|
<p>you need to encode the URL as:</p> |
|
|
|
<p>you need to encode the URL as:</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>你必須要把網址轉成:</p> |
|
|
|
|
|
|
|
|
|
|
|
<pre><code>http://images.google.com/images?num=30&amp;q=larry+bird |
|
|
|
<pre><code>http://images.google.com/images?num=30&amp;q=larry+bird |
|
|
|
</code></pre> |
|
|
|
</code></pre> |
|
|
|
|
|
|
|
|
|
|
@ -191,6 +200,9 @@ escape ampersands within URLs. Thus, if you want to link to:</p> |
|
|
|
forget, and is probably the single most common source of HTML validation |
|
|
|
forget, and is probably the single most common source of HTML validation |
|
|
|
errors in otherwise well-marked-up web sites.</p> |
|
|
|
errors in otherwise well-marked-up web sites.</p> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>才能放到你的連結標籤的 <code>href</code> 裡,不用說,這很容易忘記,可能是最大的 |
|
|
|
|
|
|
|
HTML 標準檢查的錯誤來源。</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>Markdown allows you to use these characters naturally, taking care of |
|
|
|
<p>Markdown allows you to use these characters naturally, taking care of |
|
|
|
all the necessary escaping for you. If you use an ampersand as part of |
|
|
|
all the necessary escaping for you. If you use an ampersand as part of |
|
|
|
an HTML entity, it remains unchanged; otherwise it will be translated |
|
|
|
an HTML entity, it remains unchanged; otherwise it will be translated |
|
|
@ -1032,6 +1044,5 @@ _ 底線 |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> |
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> |
|
|
|
<script src="Han-the-CSS-Reset/han.min.js"></script> |
|
|
|
<script src="Han-the-CSS-Reset/han.min.js"></script> |
|
|
|
<script src="scripts/detect_cleartype.js"></script> |
|
|
|
|
|
|
|
</body> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
</html> |
|
|
|