HTML学习之HTML格式化
1、文本格式化此例演示如何在一个 HTML 文件中对文本进行格式化代码如下:<html><body><b>This text is bold</b><br /><strong>This text is strong</strong><br /><big>This text is big</big><br /><em>This text is emphasized</em><br /><i>This text is italic</i><br /><small>This text is small</small><br />This text contains<sub>subscript</sub><br />This text contains<sup>superscript</sup></body></html>

3、“计算机输出”标签此例演示不同的“计算机输出”标签的显示效果。<html><body><cod髫潋啜缅e>Computer code</code><br /><kbd>Keyboard input</kbd><br /><tt>Teletype text</tt><br /><samp>Sample text</samp><br /><var>Computer variable</var><br /><p><b>注释:</b>这些标签常用于显示计算机/编程代码。</p></body></html>

5、缩写和首字母缩写此例锿洞斜嗤演示如何实现缩写或首字母缩写。<html><body><abbr title="稆糨孝汶;etcetera">etc.</abbr><br /><acronym title="World Wide Web">WWW</acronym><p>在某些浏览器中,当您把鼠标移至缩略词语上时,title 可用于展示表达的完整版本。</p><p>仅对于 IE 5 中的 acronym 元素有效。</p><p>对于 Netscape 6.2 中的 abbr 和 acronym 元素都有效。</p></body></html>

7、块引用此例演示如何实现长短不一的引用语。<html><body>这是长的引用:<blockquote>这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。这是长的引用。</blockquote>这是短的引用:<q>这是短的引用。</q><p>使用 blockquote 元素的话,浏览器会插入换行和外边距,而 q 元素不会有任何特殊的呈现。</p></body></html>
