<blockquote>
摘要
HTML <blockquote>
元素(HTML 區塊引言元素)定義一段文字屬於引用。通常,這元素會透過縮排來呈現(要知道如何改變,請參考備註)。引言的 URL 來源可透過 cite 屬性賦予,而來源的文本形式可以使用 <cite>
(en-US) 元素。
內容類別 (en-US) | 流內容 (en-US)、sectioning root、捫及內容。 |
---|---|
允許內容 | 內容流 (en-US). |
Tag 省略 | None, both the starting and ending tag are mandatory. |
允許父元素 | 任何允許內容流 (en-US)的元素 |
DOM 介面 | HTMLQuoteElement (en-US) |
屬性
這個屬性包含全局屬性 (en-US)。
cite
-
一個指向被引用的原始文件或訊息的 URL 。這個屬性預期要指引到解釋內容的資訊,或是引言的援引。
範例
<blockquote cite="http://developer.mozilla.org">
<p>這是取自於 Mozilla Developer Center 的引言。</p>
</blockquote>
以上的 HTML 原始碼會輸出:
規範
Specification |
---|
HTML Standard # the-blockquote-element |
瀏覽器相容性
BCD tables only load in the browser
備註
要改變<blockquote>
的縮進,請使用 CSS 的 margin
(en-US) 屬性。
針對短篇引文請使用 <q>
元素。
延伸閱讀
<q>
元素:用以表示單行的引用內容。<cite>
(en-US) 元素:用以表示引用來源。