当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <tt> <i> <
The following elements are all font style elements. They are not deprecated, but it is possible to achieve richer effects using style sheets.
以下的这些元素都是针对字体样式的。它们是符合标准的,但如果使用样式表的话可以达到更丰富的效果
<tt> | Renders as teletype or mono spaced text 电报文字或是单一间隙文字 |
<i> | Renders as italic text 斜体文字 |
<b> | Renders as bold text 加粗文字 |
<big> | Renders as bigger text 加大文字 |
<small> | Renders as smaller text 缩小文字 |
NONE
无
Source 代码 | Output 输出效果 |
---|---|
<tt>Teletype text</tt><br /> <i>Italic text</i><br /> <b>Bold text</b><br /> <big>Big text</big><br /> <small>Small text</small><br /> | Teletype text Italic text Bold text Big text Small text |
id, class, title, style, dir, lang |
For a full description, go to Standard Attributes.
查看完整描述
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown onkeyup |
For a full description, go to Event Attributes.
查看完整描述
Text formatting
This example demonstrates how you can format text in a document.
演示如何为你的文档文字加上格式效果