当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <blockquote>标签
The <blockquote> tag defines the start of a long quotation.
<blockqutoe>标签定义了长篇文字的引用
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>
Note: The blockquote element creates white space on both sides of the text.
blockquote元素会在文字的两端建立空白间隙
源代码 | 输出结果 |
---|---|
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 |
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 |
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.
查看完整的描述
Quotations
How to handle long and short quotations.
如何处理长和短引用