<ruby>
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
L'élément HTML <ruby>
représente une annotation ruby. Les annotations Ruby servent à afficher la prononciation des caractères d'Asie orientale.
Exemple interactif
Attributs
Cet élément inclut uniquement les attributs globaux.
Exemples
Annoter un caractère
HTML
html
<ruby>
漢 <rp>(</rp><rt>Kan</rt><rp>)</rp> 字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
Résultat
Annoter un mot
HTML
html
<ruby> 明日 <rp>(</rp><rt>Ashita</rt><rp>)</rp> </ruby>
Résultat
Résumé technique
Catégories de contenu | Contenu de flux, contenu de phrasé, contenu tangible. |
---|---|
Contenu autorisé | Contenu de phrasé. |
Omission de balises | Aucune, la balise d'ouverture et la balise de fermeture sont obligatoires. |
Parents autorisés | Tout élément qui accepte du contenu de phrasé. |
Rôles ARIA autorisés | Tous les rôles sont autorisés. |
Interface DOM | HTMLElement |
Spécifications
Specification |
---|
HTML # the-ruby-element |
Compatibilité des navigateurs
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ruby |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.