Summary -

In this topic, we described about the <rp> tag along with detailed example.

The <rp> tag was introduced in HTML 5. Ruby fall back text of ruby annotations in HTML documents. The <rp> represents fallback text in Ruby annotations.

Ruby annotations are commonly used in East Asian typography. The text will display when the browsers didn’t support <ruby> tag. It is a part of a ruby element.

The tag can be specified like <rp></rp> with the fallback content in between the opening and closing tags. The tag should be inside the <ruby> tag.

Syntax -

<rp>…. </rp>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title> rp element example.. </title>
	</head>
	<body>
		<ruby>
			<rb>Text</rb>
			<rp>browsers won’t support ruby tag </rp>
			<rt>Annotation</rt>
		</ruby>
	</body>
</html>

Output -

Text browsers won’t support ruby tag Annotation