--- title: ' : l''élément de texte Ruby' slug: Web/HTML/Element/rt tags: - Element - HTML - Reference - Ruby - Web translation_of: Web/HTML/Element/rt --- {{HTMLRef}} L'élément HTML **``** indique la composante texte d'une annotation Ruby, il est notamment utilisé pour la prononciation, la traduction ou la translitération des caractères d'Asie orientale. Cet élément est toujours contenu dans un élément {{HTMLElement("ruby")}}. {{EmbedInteractiveExample("pages/tabbed/rt.html", "tabbed-shorter")}} ## Attributs Cet élément inclut uniquement [les attributs universels](/fr/docs/Web/HTML/Attributs_universels). ## Exemples ### Avec prise en charge de ruby #### HTML ```html Kanji ``` ```css hidden body { font-size: 22px; } ``` #### Résultat {{EmbedLiveSample("Avec_prise_en_charge_de_ruby","100%","130")}} ### Sans prise en charge de ruby Pour un navigateur sans prise en charge de Ruby, on aurait le résultat suivant : ```html hidden 漢 Kan 字 ji ``` ```css hidden body { font-size: 22px; } ``` {{EmbedLiveSample("Sans_prise_en_charge_de_ruby", 600, 60)}} ## Spécifications | Spécification | État | Commentaires | | ---------------------------------------------------------------------------------------------------------------- | -------------------------------- | ------------ | | {{SpecName('HTML WHATWG', 'text-level-semantics.html#the-rt-element', '<rt>')}} | {{Spec2('HTML WHATWG')}} | | | {{SpecName('HTML5 W3C', 'text-level-semantics.html#the-rt-element', '<rt>')}} | {{Spec2('HTML5 W3C')}} | | ## Compatibilité des navigateurs {{Compat("html.elements.rt")}} ## Voir aussi - {{HTMLElement("ruby")}} - {{HTMLElement("rp")}} - {{HTMLElement("rb")}} - {{HTMLElement("rtc")}} - {{CSSXRef("text-transform", "text-transform: full-size-kana")}}