网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: HTML :: HTML <blockquote>标签

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

HTML <blockquote>标签


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:2557 :: ::

Definition and Usage
用法

The <blockquote> tag defines the start of a long quotation.
<blockqutoe>标签定义了长篇文字的引用


Differences Between HTML and XHTML
在HTML和XHTML中的区别

The <blockquote> tag is supposed to contain only block-level elements within it, and not just plain text.
<blockquote>标签需要在里面再加上块级的元素,而不是直接放上文字

To validate the page as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this:
要校验页面是否为严密的XHTML,你必须加上块级的元素,像这样:

<blockquote>
<p>here is a long quotation here is a long quotation</p>
</blockquote>


Tips and Notes
注意点

Note: The blockquote element creates white space on both sides of the text.
blockquote元素会在文字的两端建立空白间隙


Example
实例

源代码 输出结果
Here comes a long quotation: <blockquote> here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation </blockquote> Here comes a long quotation:
here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation here is a long quotation


Optional Attributes
可选的属性

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)

属性 描述 DTD
cite URL URL of the quote, if it is taken from the web
引用的URL地址
STF

Standard Attributes
标准的属性

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.
查看完整的描述

Event Attributes
事件属性

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

For a full description, go to Event Attributes.
查看完整的描述


Try-It-Yourself Demos
演示

Quotations
How to handle long and short quotations.
如何处理长和短引用

评论 (0) All