HTML <rt> tag


HTML <rt> tag provides translation, pronunciations, or transliteration information for the east Asian characters present in ruby language annotation.

The <rt> tag must be enclosed within <ruby> and <rp> (optional) element.

The <rt> tag is new in HTML5.

Syntax

<rt>........ </rt>  

Following are some specifications about the HTML <rt> tag

DisplayInline
Start tag/End tagBoth Start and End tag
UsageFormatting

Example

<!DOCTYPE html>  
<html>  
<head>  
    <title>HTML rt tag</title>  
    <style>  
    body{  
        text-align: center;  
    }  
        rt{ font-size: 10px;  
            color: green;  
        }  
    </style>  
</head>  
<body>  
<h1>Example of rt tag</h1>  
<ruby>  
     大哥<rt>Big Brother</rt>  
</ruby>  
</body>  
</html>  

Output:

HTML rt tag

Attribute:

Tag-specific attributes:

The <rt> tag does not contain any specific attribute.

Global attribute:

The <rt> tag supports the global attributes in HTML

Event attribute:

The <rt> tag supports the event attributes in HTML.


Leave a Reply

Your email address will not be published. Required fields are marked *