Tutorials 参考 练习 Menu
Paid Courses

HTML <rt> Tag


Example

A ruby annotation:

<ruby>
漢 <rt> ㄏㄢˋ </rt>
</ruby>
来试试吧 »

Definition and Usage

The <rt> tag defines an explanation or pronunciation of characters (for East Asian typography) in a ruby annotation.

Use <rt> together with <ruby> and <rp>: The <ruby> element consists of one or more characters that needs an explanation/pronunciation, and an <rt> element that gives that information, and an optional <rp> element that defines what to show for browsers that not support ruby annotations.


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<rt> 5.0 5.5 38.0 5.0 15.0

Global Attributes

The <rt> tag also supports the Global Attributes in HTML.


Event Attributes

The <rt> tag also supports the Event Attributes in HTML.


Default CSS Settings

Most browsers will display the <rt> element with the following default values:

rt {
  line-height: normal;
}





W3Schools is optimized for learning and training. 示例 might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.