Ruby markup carries the pronunciation relationship while utility classes adjust its typography. Annotation size should remain legible on small screens.
Worked example
<ruby class="demo [ruby-position:over] text-[2rem]">山<rt>やま</rt></ruby>Implementation notes
Leave pronunciation content in the document so assistive technologies and browsers can use the structure. A tiny absolutely positioned label loses that association.
Try it yourself
Use a long reading above a short base character.
Open the Tailwind CSS example →Editorial date June 19, 2025 · Published December 6, 2026