html tutorial - <rp> Tag in HTML - html5 - html code - html form

Learn html - html tutorial - rp tag in html - html examples - html programs
- <rp> tag is used to define parenthesis for browsers that do not support ruby annotations which are used in East Asian typography.
- In HTML we can use the <rp> tag together with <ruby> and <rt> tag.
- <rp> tag supports Global Attributes and Event Attributes.
Syntax for <rp> tag:
<ruby>
<rt><rp>(</rp>Content<rp>)</rp></rt>
</ruby>
Differences between HTML 4.01 and HTML 5 for <rp> tag:
HTML 4.0.1
- HTML 4 does not support <rp> tag.
HTML 5
- <rp> tag is new in HTML5.
Sample Coding for <rp> tag:
Tryit<!DOCTYPE html>
<html >
<head>
<meta charset=”UTF-8”>
<title>Wikitechy rp tag</title>
</head>
<body>
<ruby>
漢<rt>kan</rt>
字<rt><rp>(</rp>ji<rp>)</rp></rt>
</ruby>
</body>
</html>
Code Explanation for <rp> tag:

- <ruby> tag is used to specify ruby annotation.
- <rt> tag used to describe the pronunciation information for the word.
- <rp> tag used to define what to show for browsers that not support ruby annotations.
Output for <rp> tag:

- The output shows the Ruby annotation.
Browser Support for <rp> tag in HTML:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
5.0 | 5.5 | 38.0 | 5.0 | 15.0 |