当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <em> <strong>
The following elements are all phrase elements. They are not deprecated, but it is possible to achieve a much richer effect using style sheets.
下面所列举的段落元素都是标准的,使用样式表可以让它们的表现形式更加丰富
<em> | Renders as emphasized text 强调某些文字 |
<strong> | Renders as strong emphasized text 加强某些文字 |
<dfn> | Defines a definition term 术语定义 |
<code> | Defines computer code text 计算机代码 |
<samp> | Defines sample computer code 代码样本 |
<kbd> | Defines keyboard text 键符文字 |
<var> | Defines a variable 定义变量 |
<cite> | Defines a citation 定义引证 |
NONE
无
代码 | 输出的结果 |
---|---|
<em>Emphasized text</em><br /> <strong>Strong text</strong><br /> <dfn>Definition term</dfn><br /> <code>Computer code text</code><br /> <samp>Sample computer code text</samp><br /> <kbd>Keyboard text</kbd><br /> <var>Variable</var><br /> <cite>Citation</cite> | Emphasized text Strong text Definition term Computer code text Sample computer code text Keyboard text Variable Citation |
id, class, title, style, dir, lang, xml: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.
怎样在文档里格式化文字
"Computer output" tags
Demonstrates how different "computer output" tags will be displayed.
几个不同的"计算机输出"标签显示出来的区别