aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmltableelement/createcaption/index.html
blob: 339ee8b7667297c6be7ef9d8ec58e8c2b557f7d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
title: HTMLTableElement.createCaption
slug: Web/API/HTMLTableElement/createCaption
tags:
  - DOM
  - Gecko
  - Gecko DOM Reference
translation_of: Web/API/HTMLTableElement/createCaption
---
<div>
 {{ApiRef}}</div>
<h2 id="Summary" name="Summary">概要</h2>
<p><code>createCaption</code> は、テーブル内に新たに {{htmlelement("caption")}} 要素を生成します。</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox"><i>HTMLTableElement</i> = table.createCaption()</pre>
<h2 id="Example" name="Example"></h2>
<pre class="brush:js;gutter:false;">mycap = mytable.createCaption();</pre>
<h2 id="Notes" name="Notes">注記</h2>
<p>既にテーブル内に caption 要素が存在した場合、このメソッドはその caption 要素を返します。</p>
<h2 id="Specification" name="Specification">仕様</h2>
<ul>
 <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-96920263">createCaption</a></li>
</ul>