Html 5 Ruby Tag

The <ruby> tag was introduced in HTML 5. The <ruby> tag indicate a ruby annotations. which is used in East Asian typography.which is pronunciation of East Asian characters. which language you write to <rt> or <rp> tags. The <ruby> tag did not exist in older version of HTML.

The ruby element includes of one or more characters and a rt tag that gives to it informations.

Syntax:

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

Example Code

<!DOCTYPE HTML>
<ruby>
  漢 <rt> ㄏㄢˋ </rt>
</ruby>

Out Put :



  漢 ㄏㄢˋ

In the above example ruby tag is used to display for East Asian characters.





Content