Open In App

HTML5 rp Tag

Last Updated : 11 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

The <rp> tag in HTML is used to provide parentheses around a ruby main text that defines the information. This tag is used when the browser does not support ruby annotations. Such kind of annotation is used in Japanese publications. It is an optional tag. This tag is used within the <ruby> tag. This tag is new in HTML5.
Syntax: 
 

<rt><rp>[</rp> Explanation... <rp>]</rp></rt>

Example: In this example, we are using the <rp> tag inside a <ruby> element to display fallback brackets [ ] around the pronunciation annotation "GeeksforGeeks" for browsers that don't support ruby annotations.

HTML
<!DOCTYPE html>

<html>

<body>
    <h1>GeeksforGeeks</h1>
    <h2>&lt;rp&gt; Tag</h2>
    <ruby>GFG:
        <rt>
            <!-- HTML rp tag starts here -->
        <rp>[</rp>GeeksforGeeks
        <rp>]</rp>
        <!-- HTML rp tag starts here -->
        </rt>
    </ruby>
</body>

</html>

Output: 


Supported Browsers: 


Similar Reads