Search This Blog

Tuesday, November 13, 2018

Which HTML element can be used to express and annotate the pronunciation of East Asian characters?

Answer: ruby.
Ruby characters are annotative characters typically associated with East Asian (e.g. Japanese and Chinese) typography.
Here is an example from the HTML5 specs which uses the ruby element:
<ruby>日<rt>に</rt></ruby><ruby>本<rt>ほん</rt></ruby>
4.5.21 The ruby element