diff options
Diffstat (limited to 'files/fr/web/api/htmltableelement/caption')
| -rw-r--r-- | files/fr/web/api/htmltableelement/caption/index.md | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/files/fr/web/api/htmltableelement/caption/index.md b/files/fr/web/api/htmltableelement/caption/index.md index b7c559b5a8..68308f7596 100644 --- a/files/fr/web/api/htmltableelement/caption/index.md +++ b/files/fr/web/api/htmltableelement/caption/index.md @@ -5,21 +5,27 @@ tags: - Référence_du_DOM_Gecko translation_of: Web/API/HTMLTableElement/caption --- -<p>{{ ApiRef() }}</p> -<h3 id="R.C3.A9sum.C3.A9">Résumé</h3> -<p><b>caption</b> renvoie la légende du tableau.</p> -<h3 id="Syntaxe">Syntaxe</h3> -<pre class="eval"><i>string</i> = table.caption -</pre> -<h3 id="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">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">Spécification</h3> -<ul> - <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-14594520">DOM Level 2 HTML : caption</a> <small>(<a href="http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-14594520">traduction</a>)</small></li> - <li><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-12035137">Interface HTMLTableCaptionElement</a> <small>(<a href="http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-12035137">traduction</a>)</small></li> -</ul>
\ No newline at end of file +{{ ApiRef() }} + +### Résumé + +**caption** renvoie la légende du tableau. + +### Syntaxe + + string = table.caption + +### Exemple + + if (table.caption) { + // On peut alors faire quelque chose avec la légende du tableau + } + +### Notes + +Cette propriété ne renvoie rien s'il n'y a aucune légende pour le tableau. + +### Spécification + +- [DOM Level 2 HTML : caption](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-14594520) ([traduction](http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-14594520)) +- [Interface HTMLTableCaptionElement](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-12035137) ([traduction](http://www.yoyodesign.org/doc/w3c/dom2-html/html.html#ID-12035137)) |
