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
Release: 2023-08-29 16:29:03
forward
598 people have browsed it

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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template