aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmltableelement/caption/index.html
blob: a473c59f8356fa47c423dcc3a9b1bc918fc7fcd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: HTMLTableElement.caption
slug: Web/API/HTMLTableElement/caption
tags:
  - DOM
  - Gecko
  - Gecko DOM Reference
translation_of: Web/API/HTMLTableElement/caption
---
<div>
 {{ApiRef()}}</div>
<h2 id="Summary" name="Summary">概要</h2>
<p><code>caption</code> は、table 要素のキャプションを返します。</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox"><i>string</i> = table.caption</pre>
<h3 id="Example" name="Example"></h3>
<pre class="brush:js">if (table.caption) {
    // do something with the caption
}</pre>
<h2 id="Notes" name="Notes">注記</h2>
<p>このプロパティは、対象テーブル内に {{HTMLelement("caption")}} 要素が存在しない場合、<code>void</code> を返します。</p>
<h2 id="Specification" name="Specification">仕様書</h2>
<ul>
 <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-14594520">caption</a></li>
 <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-12035137">Interface HTMLTableCaptionElement</a></li>
</ul>