HTML <rp> tag
HTML <rp> tag : Definition
• The HTML <rp> tag is used to provide fall back parenthesis for the browser which does not support ruby annotations.
• This tag is used within <ruby> tag and newly Added tag in HTML5.
• The <ruby> element consists of one or more characters that needs an explanation/pronounciation of East Asian characters, such as Chinese or Japanese characters.
• The <rp> tag should must be enclosing of <rt> element with parenthesis that contains the annotation's text.
Html <rp> tag example 1:
<!DOCTYPE html> <html lang="en"> <head> <title>HTML rp tag example</title> <style type="text/css"> </head> <body> <h1>Chinese Word</h1> <ruby> 欢迎 <rt>welcome</rt> </ruby> </body> </html>
Output :
Chinese Word
欢迎
Html <rp> tag example 2:
<!DOCTYPE html> <html lang="en"> <head> <title>HTML rp tag example</title> <style type="text/css"> </head> <body> <h1>Japanese Word</h1> <ruby> ようこそ <rt>welcome</rt> </ruby> </body> </html>
Output :
Japanese Word
ようこそ