<blockquote>: 塊引用元素
該 <blockquote> HTML 元素表示所包含的文字是擴充套件引用。通常,這透過縮排在視覺上呈現(有關如何更改它的說明,請參見 說明)。可以使用 cite 屬性給出引文的來源的 URL,而引文的文字表示可以使用 <cite> 元素給出。
試試看
屬性
使用說明
根據規範,引文的歸屬(如果有)必須放在 <blockquote> 元素之外。
要更改應用於引文文字的縮排,請使用 CSS margin-left 和/或 margin-right 屬性,或 margin 簡寫屬性。
要包含更短的內聯引用,而不是將其放在單獨的塊中,請使用 <q>(引用)元素。
示例
本示例演示瞭如何使用<blockquote> 元素引用來自 RFC 1149,關於鳥類載體傳輸 IP 資料包的標準 的一段文字。
html
<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>
結果
技術摘要
| 內容類別 | 流內容,分節根,可感知內容。 |
|---|---|
| 允許內容 | 流內容. |
| 標籤省略 | 無,開始和結束標籤都是必須的。 |
| 允許的父元素 | 任何接受 流內容 的元素。 |
| 隱式 ARIA 角色 | blockquote |
| 允許的 ARIA 角色 | 任何 |
| DOM 介面 | HTMLQuoteElement |
規範
| 規範 |
|---|
| HTML 標準 # the-blockquote-element |
瀏覽器相容性
BCD 表格僅在瀏覽器中載入