当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <blockquote>标签

HTML
HTML Head
HTML Meta
HTML URLs
HTML Scripts
HTML 属性
HTML 事件
HTML URL-encode
HTML Web服务器
HTML 摘要
HTML 实例
标签列表
标准属性
事件属性
ASCII码
特殊字符
HTTP状态消息

HTML <blockquote>标签


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 482 ::
收藏到网摘: n/a

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

登陆 | 还没注册?