Note/Info The <rp> tag is a new tag added in HML5.
HTML5 <rp> tag
The <rp> tag in HTML5 helps the browsers to show a text if the browser does not support the ruby annotation.
The Ruby annotation has characters that needs to be explained and it is often required to show the pronunciation of these characters.
Ruby annotation can help in explaining the characters for the languages spoken in East Asian countries. These countries includes China, Hong Kong, Japan, Macau, Mongolia, North Korea, South Korea & Taiwan..
A <rp> tag used within <ruby> and <rt> tag.
Syntax :
<rp>text…</rp>
Example
<ruby> 你好<rp>(</rp><rt>hello</rt><rp>)</rp> 不错<rp>(</rp><rt>nice</rt><rp>)</rp> </ruby>
Default CSS Value
NONE
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used with <rp> tag
NONE
Global Attributes
The <rp> tag supports Global attributes.
Event Attributes
The <rp> tag supports Event attributes.
Supporting Browsers
Related Tags
<rt> and <ruby>.