--- title: '<article>: 記事コンテンツ要素' slug: Web/HTML/Element/article tags: - Element - HTML - HTML sections - Reference - Web translation_of: Web/HTML/Element/article --- <div>{{HTMLRef}}</div> <p><span class="seoSummary"><strong>HTML の <code><article></code> 要素</strong>は文書、ページ、アプリケーション、サイトなどの中で自己完結しており、 (集合したものの中で) 個別に配信や再利用を行うことを意図した構成物を表します。</span>例えば、フォーラムの投稿、雑誌や新聞の記事、ブログの記事、商品カード、ユーザーが投稿したコメント、対話型のウィジェットやガジェット、その他の独立したコンテンツの項目が含まれます。</p> <div>{{EmbedInteractiveExample("pages/tabbed/article.html", "tabbed-standard")}}</div> <div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div> <p>ある文書に複数の記事を含めることができます。たとえば、読者がスクロールするたびに各記事のテキストを次々と表示するブログでは、各記事は <code><article></code> 要素に含まれ、おそらくその中に1つ以上の <code><section></code> があります。</p> <table class="properties"> <tbody> <tr> <th scope="row"><a href="/ja/docs/Web/HTML/Content_categories">コンテンツカテゴリ</a></th> <td><a href="/ja/docs/Web/HTML/Content_categories#Flow_content">フローコンテンツ</a>, <a href="/ja/docs/Web/HTML/Content_categories#Sectioning_content">区分コンテンツ</a>, <a href="/ja/docs/Web/HTML/Content_categories#Palpable_content">知覚可能コンテンツ</a></td> </tr> <tr> <th scope="row">許可されている内容</th> <td><a href="/ja/docs/Web/HTML/Content_categories#Flow_content">フローコンテンツ</a></td> </tr> <tr> <th scope="row">タグの省略</th> <td>{{no_tag_omission}}</td> </tr> <tr> <th scope="row">許可されている親要素</th> <td><a href="/ja/docs/Web/HTML/Content_categories#Flow_content">フローコンテンツ</a>を受け入れるすべての要素。なお、 <code><article></code> 要素を {{HTMLElement("address")}} 要素の子孫にしてはいけません。</td> </tr> <tr> <th scope="row">暗黙の ARIA ロール</th> <td><code><a href="/ja/docs/Web/Accessibility/ARIA/Roles/Article_Role">article</a></code></td> </tr> <tr> <th scope="row">許可されている ARIA ロール</th> <td>{{ARIARole("application")}}, {{ARIARole("document")}}, {{ARIARole("feed")}}, {{ARIARole("main")}}, {{ARIARole("none")}}, {{ARIARole("presentation")}}, {{ARIARole("region")}}</td> </tr> <tr> <th scope="row">DOM インターフェイス</th> <td>{{domxref("HTMLElement")}}</td> </tr> </tbody> </table> <h2 id="Attributes" name="Attributes">属性</h2> <p>この要素には<a href="/ja/docs/Web/HTML/Global_attributes" title="HTML/Global attributes">グローバル属性</a>のみがあります。</p> <h2 id="Usage_notes" name="Usage_notes">使用上の注意</h2> <ul> <li>それぞれの <code><article></code> は、子要素として見出し (<a href="/ja/docs/Web/HTML/Element/Heading_Elements"><code><h1></code>-<code><h6></code></a> 要素) を含むなどの方法で識別できるようにするべきです。</li> <li><code><article></code> 要素を入れ子にした場合、内側の要素は外側の要素に関する記事を表します。例えばブログ投稿へのコメントは、ブログ投稿を表す <code><article></code> 内へ入れ子にした <code><article></code> 要素にできます。</li> <li><code><article></code> 要素の著者情報は {{HTMLElement("address")}} 要素で提供できますが、入れ子にされた <code><article></code> 要素には適用されません。</li> <li><code><article></code> 要素の発行日時は、 {{HTMLElement("time")}} 要素の {{htmlattrxref("datetime", "time")}} 属性で示すことができます。なお、 <em>{{HTMLElement("time")}} 要素の {{htmlattrxref("pubdate", "time")}} 属性は {{glossary("W3C")}} {{glossary("HTML5")}} 標準から外されました。</em></li> </ul> <h2 id="Examples" name="Examples">例</h2> <pre class="brush: html notranslate"><article class="film_review"> <header> <h2>Jurassic Park</h2> </header> <section class="main_review"> <p>Dinos were great!</p> </section> <section class="user_reviews"> <article class="user_review"> <p>Way too scary for me.</p> <footer> <p> Posted on <time datetime="2015-05-16 19:00">May 16</time> by Lisa. </p> </footer> </article> <article class="user_review"> <p>I agree, dinos are my favorite.</p> <footer> <p> Posted on <time datetime="2015-05-17 19:00">May 17</time> by Tom. </p> </footer> </article> </section> <footer> <p> Posted on <time datetime="2015-05-15 19:00">May 15</time> by Staff. </p> </footer> </article> </pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('HTML WHATWG', 'semantics.html#the-article-element', '<article>')}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td></td> </tr> <tr> <td>{{SpecName('HTML5.1', 'sections.html#the-article-element', '<article>')}}</td> <td>{{Spec2('HTML5.1')}}</td> <td></td> </tr> <tr> <td>{{SpecName('HTML5 W3C', 'sections.html#the-article-element', '<article>')}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td></td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("html.elements.article")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>他のセクション関連要素: {{HTMLElement("body")}}, {{HTMLElement("nav")}}, {{HTMLElement("section")}}, {{HTMLElement("aside")}}, {{HTMLElement("h1")}}, {{HTMLElement("h2")}}, {{HTMLElement("h3")}}, {{HTMLElement("h4")}}, {{HTMLElement("h5")}}, {{HTMLElement("h6")}}, {{HTMLElement("hgroup")}}, {{HTMLElement("header")}}, {{HTMLElement("footer")}}, {{HTMLElement("address")}}</li> <li><a href="/ja/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines">HTML のセクションとアウトラインの使用</a></li> </ul>