--- title: HTMLHeadingElement slug: Web/API/HTMLHeadingElement tags: - DOM - DOM Reference translation_of: Web/API/HTMLHeadingElement --- <div>{{ApiRef}}</div> <p>DOM の 見出し要素 (heading elements) は <a href="http://www.w3.org/TR/html5/sections.html#htmlheadingelement" rel="external">HTMLHeadingElement</a> ({{HTMLVersionInline("4")}} <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-43345119"><code>HTMLHeadingElement</code></a>) インタフェースを公開します。{{HTMLVersionInline("5")}} に於いてはこのインタフェースは <code>HTMLElement</code> から継承するものですが、追加メンバは定義されておらず、また {{HTMLVersionInline("4")}} で非推奨属性に指定されていた <code>align</code> 属性は {{HTMLVersionInline("5")}} で廃止されています。</p> <h2 id="Properties" name="Properties">プロパティ</h2> <p>{{domxref("HTMLElement")}} から継承するプロパティに加え、以下の固有プロパティを持ちます。</p> <table class="standard-table"> <tbody> <tr> <th scope="col">名称</th> <th scope="col">型</th> <th scope="col">説明</th> </tr> <tr> <td><code>align</code> {{obsolete_inline}}</td> <td>{{domxref("DOMString")}}</td> <td>周囲のコンテクストに対する見出しの配置を示す列挙属性</td> </tr> </tbody> </table> <h2 id="Methods" name="Methods">メソッド</h2> <p>固有のメソッドは持ちません。{{domxref("HTMLElement")}} インタフェースから継承するメソッドを持ちます。</p> <h2 id="Specifications" name="Specifications">仕様</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様書</th> <th scope="col">策定状況</th> <th scope="col">コメント</th> </tr> <tr> <td>{{SpecName('HTML WHATWG', "sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements", "HTMLHeadingElement")}}</td> <td>{{Spec2('HTML WHATWG')}}</td> <td>{{SpecName("HTML5 W3C")}} より変更無し</td> </tr> <tr> <td>{{SpecName('HTML5 W3C', "sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements", "HTMLHeadingElement")}}</td> <td>{{Spec2('HTML5 W3C')}}</td> <td><code>align</code> プロパティが廃止された</td> </tr> <tr> <td>{{SpecName('DOM2 HTML', 'html.html#ID-43345119', 'HTMLHeadingElement')}}</td> <td>{{Spec2('DOM2 HTML')}}</td> <td>{{SpecName("DOM1")}} より変更無し</td> </tr> <tr> <td>{{SpecName('DOM1', 'level-one-html.html#ID-43345119', 'HTMLHeadingElement')}}</td> <td>{{Spec2('DOM1')}}</td> <td>最初期の定義</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> <p>{{Compat("api.HTMLHeadingElement")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>このインタフェースを持つ HTML 要素 : {{HTMLElement("h1")}} 、{{HTMLElement("h2")}} 、{{HTMLElement("h3")}} 、{{HTMLElement("h4")}} 、{{HTMLElement("h5")}} 、 {{HTMLElement("h6")}}</li> </ul>