RP Tag in HTML || HTML RP <rp> Tag
×

HTML RP <rp> Tag

2732

One of the important elements of <ruby> tag in HTML is the <rp> tag which is used for integrating the alternate text element for the web page. Through this tag, the element is represented in the form of a closed parenthesis which specifies how a certain element or a character on the page must be pronounced if written in any other language. 

The <rt> element which constitutes of the actual annotated text is placed inside the <rp> tag inside the parenthesis. It is also important to place the <rp> tag before the <rt> tag in the HTML <ruby> tag as it presents the readable text for the specified character of the page.

Note that the content which is included in the <rp> tag is not visible on the browser even if it is supported by the respective browser.

Program:

<!DOCTYPE html>
<html>
<head>
    <title>HTML rp tag</title>
    <style>
        rt{ font-size: 18px;
            color: blue;
        }
    </style>
</head>
<body>
<h1>Example of rp tag</h1>
<ruby>
    漢<rp>(</rp><rt>Kan</rt><rp>)</rp>
    字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>
</body>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments