<blockquote>: ブロック引用要素

<blockquote>HTML 要素で、内包する要素のテキストが引用文であることを示します。通常、字下げして表示されます(整形方法については注意の項を参照してください)。引用元の URL は cite 属性により与えることができ、引用元のテキスト表現は <cite> 要素を用いて与えることができます。

試してみましょう

属性

この要素にはグローバル属性があります。

cite

引用元の文書の URL、または引用元の情報に関するメッセージを示します。この属性は、引用文の背景や出典についての説明を指し示すためのものです。

使用上の注意

引用された文字列に適用される字下げを変更するには、 CSSmargin-leftmargin-right プロパティ、または一括指定の margin プロパティを使用してください。

独立したブロックというより行内の短い引用を行うには、 <q> (Quotation) 要素を使用してください。

この例は RFC 1149, A Standard for the Transmission of IP Datagrams on Avian Carriers からの文言を引用するために <blockquote> 要素を使用する例です。

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 ロール 対応するロールなし
許可されている ARIA ロール すべて
DOM インターフェイス HTMLQuoteElement

仕様書

Specification
HTML Standard
# the-blockquote-element

ブラウザーの互換性

BCD tables only load in the browser

関連情報

  • <q>: インラインの引用のための要素
  • <cite>: 情報源の引用のための要素