blob: a3d9226edd9ef2a9ce9c379021f3431e143d1065 (
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: table.caption
slug: Web/API/HTMLTableElement/caption
tags:
- Référence_du_DOM_Gecko
translation_of: Web/API/HTMLTableElement/caption
---
<p>{{ ApiRef() }}</p>
<h3 id="R.C3.A9sum.C3.A9" name="R.C3.A9sum.C3.A9">Résumé</h3>
<p><b>caption</b> renvoie la légende du tableau.</p>
<h3 id="Syntaxe" name="Syntaxe">Syntaxe</h3>
<pre class="eval"><i>string</i> = table.caption
</pre>
<h3 id="Exemple" name="Exemple">Exemple</h3>
<pre class="eval">if (table.caption) {
// On peut alors faire quelque chose avec la légende du tableau
}
</pre>
<h3 id="Notes" name="Notes">Notes</h3>
<p>Cette propriété ne renvoie rien s'il n'y a aucune légende pour le tableau.</p>
<h3 id="Sp.C3.A9cification" name="Sp.C3.A9cification">Spécification</h3>
<ul>
<li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-14594520">DOM Level 2 HTML : caption</a> <small>(<a class="external" href="http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-14594520">traduction</a>)</small></li>
<li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-12035137">Interface HTMLTableCaptionElement</a> <small>(<a class="external" href="http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-12035137">traduction</a>)</small></li>
</ul>
<p>{{ languages( { "en": "en/DOM/table.caption", "pl": "pl/DOM/table.caption" } ) }}</p>
|