【参加讨论】
■<i> <em> <var> <cite> <dfn> <address>:
这些标记于 internet explorer 都产生斜体效果,而只有 </dfn> 于 netscape netvigator 失去作 用。这些标记中只有 <address> 较为特别,因它包括换行效果所以不必在它前面加上 <br> 标记。
例子:
| html source code (原始码) |
浏览器显示结果 |
<i>creation of webpage</i> <br><em>creation of webpage</em> <br><var>creation of webpage</var> <br><cite>creation of webpage</cite> <br><dfn>creation of webpage</dfn> <address>creation of webpage</address> |
creation of webpage creation of webpage creation of webpage creation of webpage creation of webpage
creation of webpage |
■<tt> <samp> <code> <kbd> <u> <strike> <big> <small> <sup> <sub>
为方便对照及记认,所以把十个标记于在一起介绍。
<tt> <samp> <code> <kbd> 可令每字母有相等宽度且每字母之间的距离稍为加 宽。但于 nc 不见得如此。
<u> 是加底线的标记,一些特别的浏览器并不支援,因顾虑到与连结混淆。
<strike> 加上删除线的标记。
<big> 令字体加大。
<small> 令字体变细。
<sub> 为下标字, <sup> 则为上标字,仅剩的数学标记。
例子: (第一行是没有任何字体标记的,作对照之用)
| html source code (原始码) |
浏览器显示结果 |
creation of webpage <br><tt>creation of webpage</tt> <br><samp>creation of webpage</samp> <br><code>creation of webpage</code> <br><kbd>creation of webpage</kbd> <br><u>creation of webpage</u> <br><strike>creation of webpage</strike> <br><big>creation of webpage</big> <br><small>creation of webpage</small> <br>12345<sub>7</sub> 6789<sup>9</sup> |
creation of webpage creation of webpage creation of webpage
creation of webpage creation of webpage creation of webpage
creation of webpage creation of webpage creation of webpage 123457 67899 |