Text Content
HTML <rt> element
Contains the annotation text for ruby base text, such as a pronunciation guide. The annotation is associated with preceding ruby base text. It can provide pronunciation or explanatory reading. Keep annotations concise and verify rendering for the target language. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<rt>Annotation</rt>Return Value
HTMLElement
Content model: Phrasing content; used within ruby.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <ruby> 漢 <rt>kan</rt> </ruby> </body></html>