HTML <rt> Tag
Description
The <rt>
HTML element adds an annotation above or below the text enclosed in the <ruby>
container. The annotation itself is displayed in a smaller font.
This form of recording is mainly used for Asian languages like Chinese or Japanese, but can also be used for other languages if you want to write one text over another.
Properties
- Permitted Parents
- A <ruby> element
- Content
- Inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
<ruby>
漢 <rt><rp>(</rp>ㄏㄢˋ<rp>)</rp></rt>
</ruby>
Attributes
None
Global Attributes
The <rt>
tag also supports the Global Attributes in HTML5
Event Attributes
The <rt>
tag also supports the Event Attributes in HTML5
Browser Support
The following table will show you the current browser support for the HTML <rt>
tag.
Desktop | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
|
79 | 5 | 38 | 15 | 5 |
Tablets / Mobile | |||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
18 | 38 | 14 | 4.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023