<blockquote>: The Block Quotation element
<blockquote>
HTML 元素表示所包含的文本是扩展引用。通常,这是通过缩进在视觉上呈现的(有关如何更改它的信息,请参阅 注意)。引用来源的 URL 可以使用 cite
属性给出,而来源的文本表示可以使用 <cite>
元素给出。
¥The <blockquote>
HTML element indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite
attribute, while a text representation of the source can be given using the <cite>
element.
Try it
属性
¥Attributes
该元素的属性包括 全局属性。
¥This element's attributes include the global attributes.
cite
-
指定所引用信息的源文档或消息的 URL。该属性旨在指向解释上下文或引用引用的信息。
使用说明
¥Usage notes
要更改应用于引用文本的缩进,请使用 CSS margin-left
和/或 margin-right
属性,或 margin
简写属性。
¥To change the indentation applied to the quoted text, use the CSS margin-left
and/or margin-right
properties, or the margin
shorthand property.
要在内联而不是在单独的块中包含较短的引号,请使用 <q>
(引用)元素。
¥To include shorter quotes inline rather than in a separate block, use the <q>
(Quotation) element.
示例
¥Examples
此示例演示如何使用 <blockquote>
元素引用 RFC 1149(鸟类载体上 IP 数据报传输标准)中的一段话。
¥This example demonstrates the use of the <blockquote>
element to quote a passage from RFC 1149, A Standard for the Transmission of IP Datagrams on Avian Carriers.
<blockquote cite="https://datatracker.ietf.org/doc/html/rfc1149">
<p>
Avian carriers can provide high delay, low throughput, and low altitude
service. The connection topology is limited to a single point-to-point path
for each carrier, used with standard carriers, but many carriers can be used
without significant interference with each other, outside early spring. This
is because of the 3D ether space available to the carriers, in contrast to
the 1D ether used by IEEE802.3. The carriers have an intrinsic collision
avoidance system, which increases availability.
</p>
</blockquote>
结果
技术总结
¥Technical summary
内容类别 | 流量内容,切根,可触及内容物。 |
---|---|
允许的内容 | 流量内容. |
标签遗漏 | 无,开始和结束标记都是强制性的。 |
允许的父级 | 任何接受 流动内容 的元素。 |
隐式 ARIA 角色 | blockquote |
允许的 ARIA 角色 | 任何 |
DOM 接口 | HTMLQuoteElement |
规范
Specification |
---|
HTML Standard # the-blockquote-element |
浏览器兼容性
BCD tables only load in the browser