メインコンテンツへスキップ

blockquote要素


1.仕様

BLOCKQUOTE要素は、
別のソースから
引用された
セクションを
表します。

blockquote

長い引用 (long quotation)

種類

通常要素

カテゴリ

使用できるコンテキスト
フローコンテンツを受け入れる要素

フローコンテンツを受け入れる要素のコンテンツとして、使用できます。

フローコンテンツを受け入れる要素は、body要素, section要素, nav要素, aside要素, article要素, header要素, footer要素, main要素, address要素, li要素, dt要素, dd要素, caption要素, th要素, td要素, form要素, fieldset要素, search要素, blockquote要素, figure要素, figcaption要素, div要素, dialog要素, details要素 です。

タグの省略

どちらのタグも省略できません。

コンテンツ属性
グローバル属性 他
cite属性
引用元へのリンクまたは編集に関する詳細情報
DOM インターフェイス
HTMLQuoteElement
  1. [Exposed=Window]
  2. interface HTMLQuoteElement : HTMLElement {
  3. [HTMLConstructor] constructor();
  4.  
  5. [CEReactions] attribute USVString cite;
  6.  
  7. // also has obsolete members
  8. };
HTMLElement
  1. [Exposed=Window]
  2. interface HTMLElement : Element {
  3. [HTMLConstructor] constructor();
  4.  
  5. // metadata attributes
  6. [CEReactions] attribute DOMString title;
  7. [CEReactions] attribute DOMString lang;
  8. [CEReactions] attribute boolean translate;
  9. [CEReactions] attribute DOMString dir;
  10.  
  11. // user interaction
  12. [CEReactions] attribute (boolean or unrestricted double or DOMString)? hidden;
  13. [CEReactions] attribute DOMString inert;
  14. undefined click();
  15. [CEReactions] attribute DOMString accessKey;
  16. readonly attribute DOMString accessKeyLabel;
  17. [CEReactions] attribute boolean draggable;
  18. [CEReactions] attribute boolean spellcheck;
  19. [CEReactions] attribute DOMString writingSuggestions;
  20. [CEReactions] attribute DOMString autocapitalize;
  21.  
  22. [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerText;
  23. [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerText;
  24.  
  25. ElementInternals attachInternals();
  26.  
  27. // The popover API
  28. undefined showPopover();
  29. undefined hidePopover();
  30. boolean togglePopover(optional boolean force);
  31. [CEReactions] attribute DOMString? popover;
  32. };
  33.  
  34. HTMLElement includes GlobalEventHandlers;
  35. HTMLElement includes ElementContentEditable;
  36. HTMLElement includes HTMLOrSVGElement;
Element
  1. [Exposed=Window]
  2. interface Element : Node {
  3. readonly attribute DOMString? namespaceURI;
  4. readonly attribute DOMString? prefix;
  5. readonly attribute DOMString localName;
  6. readonly attribute DOMString tagName;
  7.  
  8. [CEReactions] attribute DOMString id;
  9. [CEReactions] attribute DOMString className;
  10. [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
  11. [CEReactions, Unscopable] attribute DOMString slot;
  12.  
  13. boolean hasAttributes();
  14. [SameObject] readonly attribute NamedNodeMap attributes;
  15. sequence<DOMString> getAttributeNames();
  16. DOMString? getAttribute(DOMString qualifiedName);
  17. DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
  18. [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
  19. [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
  20. [CEReactions] undefined removeAttribute(DOMString qualifiedName);
  21. [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
  22. [CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
  23. boolean hasAttribute(DOMString qualifiedName);
  24. boolean hasAttributeNS(DOMString? namespace, DOMString localName);
  25.  
  26. Attr? getAttributeNode(DOMString qualifiedName);
  27. Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
  28. [CEReactions] Attr? setAttributeNode(Attr attr);
  29. [CEReactions] Attr? setAttributeNodeNS(Attr attr);
  30. [CEReactions] Attr removeAttributeNode(Attr attr);
  31.  
  32. ShadowRoot attachShadow(ShadowRootInit init);
  33. readonly attribute ShadowRoot? shadowRoot;
  34.  
  35. Element? closest(DOMString selectors);
  36. boolean matches(DOMString selectors);
  37. boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
  38.  
  39. HTMLCollection getElementsByTagName(DOMString qualifiedName);
  40. HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
  41. HTMLCollection getElementsByClassName(DOMString classNames);
  42.  
  43. [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy
  44. undefined insertAdjacentText(DOMString where, DOMString data); // legacy
  45. };
GlobalEventHandlers
  1. interface mixin GlobalEventHandlers {
  2. attribute EventHandler onabort;
  3. attribute EventHandler onauxclick;
  4. attribute EventHandler onbeforeinput;
  5. attribute EventHandler onbeforematch;
  6. attribute EventHandler onbeforetoggle;
  7. attribute EventHandler onblur;
  8. attribute EventHandler oncancel;
  9. attribute EventHandler oncanplay;
  10. attribute EventHandler oncanplaythrough;
  11. attribute EventHandler onchange;
  12. attribute EventHandler onclick;
  13. attribute EventHandler onclose;
  14. attribute EventHandler oncontextlost;
  15. attribute EventHandler oncontextmenu;
  16. attribute EventHandler oncontextrestored;
  17. attribute EventHandler oncopy;
  18. attribute EventHandler oncuechange;
  19. attribute EventHandler oncut;
  20. attribute EventHandler ondblclick;
  21. attribute EventHandler ondrag;
  22. attribute EventHandler ondragend;
  23. attribute EventHandler ondragenter;
  24. attribute EventHandler ondragleave;
  25. attribute EventHandler ondragover;
  26. attribute EventHandler ondragstart;
  27. attribute EventHandler ondrop;
  28. attribute EventHandler ondurationchange;
  29. attribute EventHandler onemptied;
  30. attribute EventHandler onended;
  31. attribute OnErrorEventHandler onerror;
  32. attribute EventHandler onfocus;
  33. attribute EventHandler onformdata;
  34. attribute EventHandler oninput;
  35. attribute EventHandler oninvalid;
  36. attribute EventHandler onkeydown;
  37. attribute EventHandler onkeypress;
  38. attribute EventHandler onkeyup;
  39. attribute EventHandler onload;
  40. attribute EventHandler onloadeddata;
  41. attribute EventHandler onloadedmetadata;
  42. attribute EventHandler onloadstart;
  43. attribute EventHandler onmousedown;
  44. [LegacyLenientThis] attribute EventHandler onmouseenter;
  45. [LegacyLenientThis] attribute EventHandler onmouseleave;
  46. attribute EventHandler onmousemove;
  47. attribute EventHandler onmouseout;
  48. attribute EventHandler onmouseover;
  49. attribute EventHandler onmouseup;
  50. attribute EventHandler onpaste;
  51. attribute EventHandler onpause;
  52. attribute EventHandler onplay;
  53. attribute EventHandler onplaying;
  54. attribute EventHandler onprogress;
  55. attribute EventHandler onratechange;
  56. attribute EventHandler onreset;
  57. attribute EventHandler onresize;
  58. attribute EventHandler onscroll;
  59. attribute EventHandler onscrollend;
  60. attribute EventHandler onsecuritypolicyviolation;
  61. attribute EventHandler onseeked;
  62. attribute EventHandler onseeking;
  63. attribute EventHandler onselect;
  64. attribute EventHandler onslotchange;
  65. attribute EventHandler onstalled;
  66. attribute EventHandler onsubmit;
  67. attribute EventHandler onsuspend;
  68. attribute EventHandler ontimeupdate;
  69. attribute EventHandler ontoggle;
  70. attribute EventHandler onvolumechange;
  71. attribute EventHandler onwaiting;
  72. attribute EventHandler onwebkitanimationend;
  73. attribute EventHandler onwebkitanimationiteration;
  74. attribute EventHandler onwebkitanimationstart;
  75. attribute EventHandler onwebkittransitionend;
  76. attribute EventHandler onwheel;
  77. };
ElementContentEditable
  1. interface mixin ElementContentEditable {
  2. [CEReactions] attribute DOMString contentEditable;
  3. [CEReactions] attribute DOMString enterKeyHint;
  4. readonly attribute boolean isContentEditable;
  5. [CEReactions] attribute DOMString inputMode;
  6. };
HTMLOrSVGElement
  1. interface mixin HTMLOrSVGElement {
  2. [SameObject] readonly attribute DOMStringMap dataset;
  3. attribute DOMString nonce; // intentionally no [CEReactions]
  4.  
  5. [CEReactions] attribute boolean autofocus;
  6. [CEReactions] attribute long tabIndex;
  7. undefined focus(optional FocusOptions options = {});
  8. undefined blur();
  9. };
ARIA in HTML
暗黙的="blockquote" ARIAロール="任意" aria-* 属性="GlobalAny"

暗黙的な ARIAセマンティクスは、role=blockquote です。

要素で任意の role 値を使用できます。ただし、作成者が要素の暗黙的なロール, 汎用ロール, または ARIA によって非推奨となったロールをこれらの要素に対して指定することは推奨されません。

グローバル aria-* 属性と、許可されたロールに適用される任意の aria-* 属性が記述できます。

レンダリング
ブロックボックス
フローコンテンツ
  1. blockquote {
  2. display: block;
  3. margin-block: 1em;
  4. margin-inline: 40px;
  5. unicode-bidi: isolate;
  6. }

CSS を大雑把に読むと、 ブロックレベルのブロックコンテナボックス(ブロックボックス)を生成します。 などになります。

説明
blockquote要素は、別のソースから引用されたセクションを表します。
  1. <!DOCTYPE html>
  2. <html lang="ja">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>blockquote要素の例 - (Example of blockquote element) | 離珠のHTMLでしぃ!</title>
  6. </head>
  7. <body>
  8. <h1>blockquote要素の例</h1>
  9. <blockquote>
  10. ここに、引用した文などを置きます。
  11. フレージングコンテンツには、q要素があります。
  12. </blockquote>
  13. </body>
  14. </html>

このサンプルへのリンクです。
(./exblockquote.htm)

JSONデータ
JSON形式での、データのイメージです。
  1. {
  2. "blockquote": {
  3. "check": "2024-09-01",
  4. "group": "Flow",
  5. "element": "- - (%Flow)* -- long quotation. (Normal elements.) [Flow|Sectioningroots|Palpable] --",
  6. "attlist": {
  7. "%Global;": "",
  8. "cite": "%URI; #IMPLIED -- Link to the source of the quotation or more information about the edit --",
  9. },
  10. "comment": "長い引用 (long quotation)",
  11. "point": "別のソースから引用されたセクションを表します。",
  12. "kind": "Normal",
  13. "categories": [
  14. "Flow",
  15. "Sectioningroots",
  16. "Palpable",
  17. ],
  18. "used": "parent %Flow",
  19. "contentmodel": "blockquote (%Flow)*",
  20. "tag": [
  21. "-",
  22. "-",
  23. ],
  24. "attributes": {"cite": "引用元へのリンクまたは編集に関する詳細情報"},
  25. "dominterface": "HTMLQuoteElement",
  26. "rendering": [
  27. "Flow",
  28. "Bidirectional",
  29. ],
  30. "reference": [
  31. {
  32. "title": "HTML Living Standard. 4.4.4 The blockquote element.",
  33. "href": "https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element",
  34. "heading": "HTML Living Standard. 4.4.4 The blockquote element",
  35. "sub": "Last Updated 27 August 2024",
  36. },
  37. {
  38. "title": "HTML Living Standard. 15 Rendering 15.3.3 Flow content.",
  39. "href": "https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3",
  40. "heading": "HTML Living Standard. 15 Rendering 15.3.3 Flow content",
  41. "sub": "Last Updated 27 August 2024",
  42. },
  43. {
  44. "title": "HTML 5.2 W3C Recommendation. 4.4.5 The blockquote element. W3C Recommendation, 14 December 2017.",
  45. "href": "https://www.w3.org/TR/2017/REC-html52-20171214/grouping-content.html#the-blockquote-element",
  46. "heading": "HTML 5.2 W3C 勧告. 4.4.5 The blockquote element",
  47. "sub": "W3C勧告、2017年12月14日",
  48. },
  49. {
  50. "title": "HTML 5.2 W3C Recommendation. 10.3.3. Flow content.",
  51. "href": "https://www.w3.org/TR/2017/REC-html52-20171214/rendering.html#non-replaced-elements-flow-content",
  52. "heading": "HTML 5.2 W3C 勧告. 10.3.3. Flow content.",
  53. "sub": "W3C勧告、2017年12月14日",
  54. },
  55. {
  56. "title": "HTML 5.1 W3C Recommendation. 4.4.4 The blockquote element. W3C Recommendation, 1 November 2016.",
  57. "href": "https://www.w3.org/TR/2016/REC-html51-20161101/grouping-content.html#the-blockquote-element",
  58. "heading": "HTML 5.1 W3C 勧告. 4.4.4 The blockquote element",
  59. "sub": "W3C勧告、2016年11月1日",
  60. },
  61. {
  62. "title": "HTML 5.1 W3C Recommendation. 10.3.3. Flow content. W3C Recommendation, 1 November 2016.",
  63. "href": "https://www.w3.org/TR/2016/REC-html51-20161101/rendering.html#non-replaced-elements-flow-content",
  64. "heading": "HTML 5.1 W3C 勧告. 10.3.3. Flow content.",
  65. "sub": "W3C勧告、2016年11月1日",
  66. },
  67. {
  68. "title": "HTML 5 W3C Recommendation. 4.4.4 The blockquote element. W3C Recommendation, 28 October 2014.",
  69. "href": "https://www.w3.org/TR/2014/REC-html5-20141028/grouping-content.html#the-blockquote-element",
  70. "heading": "HTML 5 W3C 勧告. 4.4.4 The blockquote element",
  71. "sub": "W3C勧告、2014年10月28日",
  72. },
  73. {
  74. "title": "HTML 5 W3C Recommendation. 10.3.3. Flow content. W3C Recommendation, 28 October 2014.",
  75. "href": "https://www.w3.org/TR/2014/REC-html5-20141028/rendering.html#flow-content-0",
  76. "heading": "HTML 5 W3C 勧告. 10.3.3. Flow content.",
  77. "sub": "W3C勧告、2014年10月28日",
  78. },
  79. {
  80. "title": "HTML 4.01 Specification W3C Recommendation. 9.2.2 Quotations: The BLOCKQUOTE and Q elements. W3C Recommendation 24 December 1999.",
  81. "href": "https://www.w3.org/TR/html401/struct/text.html#h-9.2.2",
  82. "heading": "HTML 4.01 Specification W3C 勧告. 9.2.2 Quotations: The BLOCKQUOTE and Q elements",
  83. "sub": "W3C勧告1999年12月24日",
  84. },
  85. {
  86. "title": "HTML 3.2 Reference Specification. W3C Recommendation 14-Jan-1997.",
  87. "href": "https://www.w3.org/TR/2018/SPSD-html32-20180315/#bq",
  88. "heading": "HTML 3.2 Reference Specification",
  89. "sub": "W3C勧告1997年1月14日",
  90. },
  91. {
  92. "title": "Hypertext Markup Language - 2.0. November 1995.",
  93. "href": "https://www.ietf.org/rfc/rfc1866.txt",
  94. "heading": "Hypertext Markup Language - 2.0",
  95. "sub": "November 1995",
  96. },
  97. {
  98. "title": "Hypertext Markup Language (HTML). June 1993.",
  99. "href": "https://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt",
  100. "heading": "Hypertext Markup Language (HTML)",
  101. "sub": "June 1993",
  102. },
  103. {
  104. "title": "MDN Web Docs. HTML <blockquote>: The Block Quotation element.",
  105. "href": "https://developer.mozilla.org/ja/docs/Web/HTML/Element/blockquote",
  106. "heading": "<blockquote>: ブロック引用要素 - HTML: ハイパーテキストマークアップ言語 | MDN",
  107. },
  108. ],
  109. "version": {
  110. "first": "HTML",
  111. "latest": "HTML Living Standard",
  112. },
  113. }
  114. }

注意: 簡易に描画する為に、各項目の後ろに , を付与しています。JSON の形式では、末尾の項目の後には , は付けません。

最終確認日

2024-09-01


2.使用可能な箇所

フローコンテンツ
受け入れる要素に
配置できます。

blockquote要素を使用できる状態(コンテキストContext)は、 フローコンテンツを受け入れる要素に配置できます。

フローコンテンツを受け入れる要素は、body要素, section要素, nav要素, aside要素, article要素, header要素, footer要素, main要素, address要素, li要素, dt要素, dd要素, caption要素, th要素, td要素, form要素, fieldset要素, search要素, blockquote要素, figure要素, figcaption要素, div要素, dialog要素, details要素 です。


3.配置できるコンテンツ


4.属性

グローバル属性と、
cite を
設定できます。

blockquoteは、グローバル属性cite属性を設定できます。

cite属性

  1. <blockquote cite="https://ja.wikipedia.org/wiki/%E5%8F%82%E7%85%A7_(%E6%9B%B8%E8%AA%8C%E5%AD%A6)">
  2. 書誌学における参照 (さんしょう、英語: citation) とは、記事に参考文献の書誌情報を添えること。記事の信頼性の向上や引用の出どころの明示を目的に、学術論文や総説、専門書、オープンソースの百科事典などで行われる。
  3. </blockquote>

citeは、引用の出典または編集に関する詳細情報へのリンクを指定します。

blockquote要素内のコンテンツは別のソースからの引用でなければならず、そのアドレスがあればciteで引用することができます。

citeがある場合、空白で囲まれた有効なURLでなければなりません。対応する引用リンクを得るために、属性の値は要素のノード文書から相対的に解析されなければなりません。ユーザエージェントは、ユーザがこのような引用リンクをたどることを許可するかもしれませんが、それは主に個人的な使用 (例えば、サイトの引用の使用に関する統計を収集するサーバサイドスクリプト) を意図したものであり、読者のためのものではありません。
引用先の名称を表したい場合は、cite要素を用いる事をお勧めします。

書誌学における参照 (さんしょう、英語: citation) とは、記事に参考文献の書誌情報を添えること。記事の信頼性の向上や引用の出どころの明示を目的に、学術論文や総説、専門書、オープンソースの百科事典などで行われる。

5.Web API

blockquote要素を
直接表す
プロパティは
ありません。

blockquote要素を表すプロパティはないので、id属性を用いて documentgetElementById()メソッドで、要素を取得する方法がお勧めです。この時に取得できるのはHTMLQuoteElement オブジェクトです。blockquote要素id属性があれば、スクリプトで何か扱っているとHTMLソースだけを見ても推測できて注意を払えるからです。 尚、アンカーとしてid属性を用いる事も想定して、命名規則を決めておくのも良いと思います。


6.レンダリング

  1. blockquote {
  2. display: block;
  3. margin-block: 1em;
  4. margin-inline: 40px;
  5. unicode-bidi: isolate;
  6. }

blockquote要素は、ブロックレベルのブロックコンテナであるブロックボックスを生成します。

blockquote要素の特徴としては、そのテキストが引用である事を装飾(視覚的)にも明示できる事が重要であると思います。 読み手に引用である事が伝わる事が大事なので、アレンジする場合もその事は注意が必要です。


7.気を付ける点

引用

引用を表わす事が目的の要素なので、そのコンテンツが引用である事が大事です。
尚、安易なソースコードのコピペは、そこで用いている要素とこの文書との関係性も意識しなければならないので問題が発生しかねないです。 何を引用しているのか? その文書の文章なのかソースコードなのか、改めて考えてみて下さい。

blockquote要素は「長い引用 (long quotation)」とある様に、フレーズ内容を表すにはq要素


8.付記