HTML5 <rt> Tag

Topic: HTML5 Tags Reference« Prev|Next »

Description

The <rt> element is used within a <ruby> to define the pronunciation of character presented in a ruby annotations. This element is primarily used for showing pronunciation of characters in languages, like Chinese and Japanese Chinese.

The following table summarizes the usages context and the version history of this tag.

Placement: Inline
Content: Inline, and text
Start/End Tag: Start tag: required, End tag: required
Version: New in HTML5

Syntax

The basic syntax of the <rt> tag is given with:

HTML / XHTML: <rt> ... </rt>

The example below shows the <rt> tag in action.

  • <ruby>
  • <rp>(</rp><rt>Kan</rt><rp>)</rp>
  • <rp>(</rp><rt>ji</rt><rp>)</rp>
  • </ruby>

Tag-Specific Attributes

The <rt> tag doesn't have any specific attribute.


Global Attributes

Like all other HTML tags, the <rt> tag supports the global attributes in HTML5.


Event Attributes

The <rt> tag also supports the event attributes in HTML5.


Browser Compatibility

The <rt> tag is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox ×
  • Google Chrome 5+
  • Internet Explorer 5.5+
  • Apple Safari 5+
  • Opera 15+

Further Reading

See tutorial on: HTML Text Formatting.

Related tags: <ruby>, <rp>.

 
Close

Your Feedback:

 

We would love to hear from you! Please say something.