From a47584de1bd47788cb5aa6178fa88b31977b2a8e Mon Sep 17 00:00:00 2001 From: tristantheb Date: Sat, 19 Jun 2021 10:25:05 +0200 Subject: UPDATE: Update translation of the HTML elements — 🛠 Priority work area (#500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * UPDATE: Updating pages starting with A * FIX: Update missing KS to html anchor * Review HTML Element a * Review HTML Element abbr * Review HTML Element acronym * Review HTML Element address * Review HTML Element applet * Review HTML Element area * Review HTML Element article * Review HTML Element aside * Review HTML Element audio * UPDATE: Updating pages wtarting with B * Review HTML Element b * Review HTML Element base * Review HTML Element basefont * Review HTML Element bdi * Review HTML Element bdo * Review HTML Element big * Review HTML Element blink * Review HTML Element blockquote * Review HTML Element body * Review HTML Element br * Review HTML Element button * Review HTML Element button - rm HTMLRef * Review HTML Element button - lint link * UPDATE: Updating pages starting with C * UPDATE: Updating pages starting with D * UPDATE: Refresh the reference page * UPDATE: Updating pages starting with E * Review HTML Element canvas * Review HTML Element caption * Review HTML Element center * Review HTML Element cite * UPDATE: Updating pages starting with F * BCD: Update all updated pages with new BCD format * FIX: add missing bracket * Review - HTML element - code * Review - HTML Element - col * Review - HTML Element - colgroup * Review - HTML Element - content * Review - HTML Element - data * Review - HTML Element - datalist * Review - HTML Element - dd * Review - HTML Element - del * Review - HTML Element * Review - HTML Element - dfn * Review - HTML Element - dialog * Review - HTML element - dir * Review - HTML Element div * Review - HTML Element - dl * Review - HTML Element - dt * Review - HTML Element - em * Review - HTML Element - embed * Review - HTML Element - fieldset * Review - HTML Element - figcaption * Review - HTML Element - figure * Review - HTML Element - font * Review - HTML Element - footer * Review - HTML Element - form * Review - HTML Element - frame * Review - HTML Element - frameset * Review updates since PR start - A * Review updates since PR start - B * Review updates since PR start - C * Review updates since PR start - D * Review updates since PR start - F Co-authored-by: julieng --- files/fr/web/html/element/figure/index.html | 197 +++++++++++----------------- 1 file changed, 79 insertions(+), 118 deletions(-) (limited to 'files/fr/web/html/element/figure') diff --git a/files/fr/web/html/element/figure/index.html b/files/fr/web/html/element/figure/index.html index faeea41797..7ab8953ba1 100644 --- a/files/fr/web/html/element/figure/index.html +++ b/files/fr/web/html/element/figure/index.html @@ -1,38 +1,71 @@ --- -title: '
: l''élément de figure' +title: '
: l''élément de figure avec légende facultative' slug: Web/HTML/Element/figure tags: - Element - HTML + - HTML grouping content + - Information + - Presentation - Reference - - Web + - figure translation_of: Web/HTML/Element/figure +browser-compat: html.elements.figure ---
{{HTMLRef}}
-

L'élément HTML <figure> représente une figure (un schéma), qui peut être accompagné d'une légende grâce à l'élément {{HTMLElement("figcaption")}}. Il est normalement référencé de manière unique. C'est souvent une image, une illustration, un diagramme, un fragment de code ou un schéma auquel il est fait référence dans le texte principal mais qui peut être utilisé sur une autre page ou dans une annexe sans que cela affecte le contenu principal.

+

L'élément HTML <figure> représente un contenu autonome, éventuellement accompagné d'une légende facultative, qui est spécifiée à l'aide de l'élément <figcaption>. La figure, sa légende et son contenu sont référencés comme une seule unité.

{{EmbedInteractiveExample("pages/tabbed/figure.html","tabbed-shorter")}}
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Catégories de contenuContenu de flux, racine de sectionnement, contenu tangible.
Contenu autoriséUn élément <figcaption> suivi d'un contenu de flux ou du contenu de flux suivi d'un élément <figcaption> ou du contenu de flux.
Omission de balisesAucune, la balise ouvrante et la balise fermante sont toutes les deux obligatoires.
Parents autorisésTout élément qui accepte du contenu de flux.
RĂ´le ARIA implicitefigure
Rôles ARIA autorisésSans descendant <figcaption> descendant : n'importe quel rôle, sinon aucun rôle autorisé.
Interface DOMHTMLElement
-

Attributs

+

Attributs

-

Cet élément prend uniquement en charge les attributs universels.

+

Cet élément prend uniquement en charge les attributs universels.

-

Notes d'utilisation

+

Notes d'utilisation

    -
  • Bien que cet Ă©lĂ©ment soit en lien avec le contenu principal, sa position est indĂ©pendante du contenu principal du document.
  • -
  • <figure> est une racine de sectionnement, son contenu est donc exclu du plan gĂ©nĂ©ral du document.
  • -
  • Une lĂ©gende peut ĂŞtre associĂ©e avec l'Ă©lĂ©ment <figure> en insĂ©rant un Ă©lĂ©ment {{HTMLElement("figcaption")}} Ă  l'intĂ©rieur (en premier ou dernier Ă©lĂ©ment enfant). C'est le premier Ă©lĂ©ment <figcaption> qui sera trouvĂ© dans la figure qui sera affichĂ© comme lĂ©gende.
  • +
  • GĂ©nĂ©ralement, un Ă©lĂ©ment <figure> est utilisĂ© pour une image, une illustration, un diagramme, un fragment de code ou autre qui est rĂ©fĂ©rencĂ© depuis le flux principal du document. Toutefois, cet Ă©lĂ©ment peut ĂŞtre dĂ©placĂ© vers une autre partie du document ou en annexe sans que cela ait un impact sur le flux principal.
  • +
  • <figure> est une racine de sectionnement, son contenu est donc exclu du plan gĂ©nĂ©ral du document.
  • +
  • Une lĂ©gende peut ĂŞtre associĂ©e avec l'Ă©lĂ©ment <figure> en insĂ©rant un Ă©lĂ©ment <figcaption> Ă  l'intĂ©rieur (en premier ou dernier Ă©lĂ©ment enfant). C'est le premier Ă©lĂ©ment <figcaption> qui sera trouvĂ© dans la figure qui sera affichĂ© comme lĂ©gende.
-

Exemples

- -

Premier exemple

+

Exemples

-

HTML

+

Images

<!-- Une simple image -->
 <figure>
@@ -47,22 +80,17 @@ translation_of: Web/HTML/Element/figure
   src="https://developer.mozilla.org/static/img/favicon144.png"
   alt="Le logo de MDN.">
   <figcaption>Logo MDN</figcaption>
-</figure>
-
- -

Résultat

- -

{{EmbedLiveSample("Premier_exemple","100%","375")}}

+</figure> -

Extrait de code

+
{{EmbedLiveSample("images", "100%", 400)}}
-

HTML

+

Extrait de code

<figure>
   <figcaption>Obtenir les détails du navigateur</figcaption>
   <pre>
     function NavigatorExample(){
-      var txt;
+      let txt;
       txt = "Nom de code: " + navigator.appCodeName;
       txt += "Nom du navigateur : " + navigator.appName;
       txt += "Version : " + navigator.appVersion ;
@@ -72,117 +100,50 @@ translation_of: Web/HTML/Element/figure
       console.log("NavigatorExample", txt);
     }
   </pre>
-</figure>
-
- -

Résultat

- -

{{EmbedLiveSample("Extrait_de_code","100%","300")}}

+</figure> -

Citation

+
{{EmbedLiveSample("code_snippets", "100%", 250)}}
-

HTML

+

Citation

<figure>
-   <figcaption>
-     <cite>Edsger Dijkstra : </cite>
-   </figcaption>
-   <p>« Si le débogage correspond au retrait de bogues, alors la programmation correspond à l'ajout de bogues. »</p>
+  <figcaption>
+    <cite>Edsger Dijkstra : </cite>
+  </figcaption>
+  <p>« Si le débogage correspond au retrait de bogues,
+    alors la programmation correspond à l'ajout de bogues. »
+  </p>
 </figure>
-

Résultat

- -

{{EmbedLiveSample("Citation","100%","150")}}

- -

Poème

+
{{EmbedLiveSample("quotations","", 150)}}
-

HTML

+

Poème

<figure>
- <p>
-  Bid me discourse, I will enchant thine ear,
-  Or like a fairy trip upon the green,
-  Or, like a nymph, with long dishevell'd hair,
-  Dance on the sands, and yet no footing seen:
-  Love is a spirit all compact of fire,
-  Not gross to sink, but light, and will aspire.
- </p>
- <figcaption><cite>Venus and Adonis</cite>.
-  By: William Shakespeare</figcaption>
+  <p style="white-space:pre">
+    Bid me discourse, I will enchant thine ear,
+      Or like a fairy trip upon the green,
+    Or, like a nymph, with long dishevell'd hair,
+      Dance on the sands, and yet no footing seen:
+    Love is a spirit all compact of fire,
+      Not gross to sink, but light, and will aspire.
+  </p>
+  <figcaption><cite>Venus and Adonis</cite>.
+    By: William Shakespeare</figcaption>
 </figure>
-

Résultat

- -

{{EmbedLiveSample("Poème","100%","150")}}

- -

Résumé technique

+
{{EmbedLiveSample("poems", "100%", 260)}}
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Catégories de contenuContenu de flux, racine de sectionnement, contenu tangible.
Contenu autoriséUn élément {{HTMLElement("figcaption")}} suivi d'un contenu de flux ou du contenu de flux suivi d'un élément {{HTMLElement("figcaption")}} ou du contenu de flux.
Omission de balises{{no_tag_omission}}
Parents autorisésTout élément qui accepte du contenu de flux.
Rôles ARIA autorisés{{ARIARole("group")}}, {{ARIARole("presentation")}}
Interface DOM{{domxref("HTMLElement")}}
- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('HTML WHATWG', 'semantics.html#the-figure-element', '<figure>')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5.2', 'grouping-content.html#the-figure-element', '<figure>')}}{{Spec2('HTML5.2')}}Aucune modification depuis HTML 5.0.
{{SpecName('HTML5 W3C', 'grouping-content.html#the-figure-element', '<figure>')}}{{Spec2('HTML5 W3C')}}
+

Spécifications

-

Compatibilité des navigateurs

+

{{Specifications}}

- +

Compatibilité des navigateurs

-

{{Compat("html.elements.figure")}}

+

{{Compat}}

-

Voir aussi

+

Voir aussi

    -
  • {{HTMLElement("figcaption")}}
  • +
  • L'Ă©lĂ©ment <figcaption>
-- cgit v1.2.3-54-g00ecf