Summary -

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

The <rt> tag was introduced in HTML 5. Specifies an explanation or pronunciation of characters. The <rt> tag used to specify the ruby text component of a ruby annotation.

The <rt> tag is part of a <ruby> element. Ruby annotations are commonly used in East Asian typography. The tag used to specified like <rt></rt> with the ruby text in between the opening and closing tags.

The closing tag may be ignored if the <rt> element is followed by an <rb>, <rt> or <rp>. If other tag is following except above, the closing tag is required.

Syntax -

<rt>…. </rt>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title> rt 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