Home >Web Front-end >HTML Tutorial >How to display Ruby comments for text in HTML5?

How to display Ruby comments for text in HTML5?

PHPz
PHPzforward
2023-08-29 16:29:03645browse

How to display Ruby comments for text in HTML5?

Use the tag to display the phonetic notation of the text. HTML5's tag is used to display the pronunciation of characters in Zhuyin. These are used to display the pronunciation of East Asian characters.

Example

You can try running the following code to display the phonetic notation of the text −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Rt Tag</title>
   </head>
   <body>
      <ruby>
         漢 <rp>(</rp><rt>Kan</rt><rp>)</rp>
         字 <rp>(</rp><rt>ji</rt><rp>)</rp>
      </ruby>
   </body>
</html>

The above is the detailed content of How to display Ruby comments for text in HTML5?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete