The ruby tag in HTML5 means "annotation". The ruby tag is used to mark definition comments or phonetic symbols. It is used together with the rp and rt tags. The syntax is " element".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What is the meaning of ruby tag in html5
tag definition ruby comment (Chinese phonetic phonetic or character). Used in East Asia, showing the pronunciation of East Asian characters. Used with the and
ruby element consists of one or more characters (requiring an explanation/pronunciation) and an rt element that provides that information, optionally The rp element defines the content displayed when the browser does not support the "ruby" element.
Tag defines annotation or phonetic notation.
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <ruby> 汉 <rp>(</rp><rt>Han</rt><rp>)</rp> 字 <rp>(</rp><rt>zi</rt><rp>)</rp> </ruby> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of What is the meaning of ruby tag in html5. For more information, please follow other related articles on the PHP Chinese website!