HTML <rt> tag
HTML <rt> tag : Definition
• The HTML <rt> tag is normally used for the purpose of translation, explanation or pronunciation of characters(for East Asian typography such as Chinese or Japanese characters) in a <ruby> annotation.
• The <rt> tag must be enclosed by <ruby> and <rp>(optional) element.
• The HTML <rp> tag is used to provide fall back parenthesis for the browser which does not support <ruby> annotations.
• This <rp> tag is used within <ruby> tag and newly Added tag in HTML5.
Html <rt> tag example 1:
<!DOCTYPE html> <html lang="en"> <head> <title>HTML rt tag example</title> <style type="text/css"> </head> <body> <h1>Chinese Word</h1> <ruby> 欢迎 <rt>welcome</rt> </ruby> </body> </html>
Output :
Chinese Word
欢迎
Html <rt> tag example 2:
<!DOCTYPE html> <html lang="en"> <head> <title>HTML rt tag example</title> <style type="text/css"> </head> <body> <h1>Japanese Word</h1> <ruby> ようこそ <rt>welcome</rt> </ruby> </body> </html>
Output :
Japanese Word
ようこそ