rp tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The rp tag is used to provide a bracket around text, ruby characters, to be displayed in browsers that do not support ruby comments.
Ruby here is not a ruby programming language.
So what are ruby characters? It is essentially the comments usually placed above or to the right of the kanji characters when writing Korean, Japanese, and Chinese languages. Those comments are often used to guide pronunciation, so they may not be familiar to readers. (Now you understand why Chinese, Korean, and Japanese are the most difficult languages to learn 🙂 .)
Use rp tags in conjunction with rt tags and ruby tags:
- The <ruby> tag contains one or more characters that need pronunciation annotations.
- The <rt> tag provides that annotation information.
- The <rp> tag defines what to display to browsers that don't support ruby annotations.
Using
Example : Use rp tag in combination with rt tag and ruby tag.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <ruby>東 京<rt><rp>(</rp>と う き ょ う<rp>)</rp></rt> </ruby> </body> </html>