Home > Article > Web Front-end > How to use html ruby tags
html The ruby tag is used to define ruby comments (Chinese phonetic notations or characters), which are used in East Asia and display the pronunciation of East Asian characters. Use the tag with the
#html How to use ruby tags?
Tag definition and usage instructions
Tag definition ruby comment (Chinese phonetic or character).
is used in East Asia and displays the pronunciation of East Asian characters.
Use the tag with the
The element consists of one or more characters that need to be interpreted/pronounced and a Consists of a
Differences between HTML 4.01 and HTML5: The tag is a new tag in HTML5.
Global attributes
tag supports HTML global attributes.
Event attributes
tag supports HTML event attributes.
Example
A ruby comment:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <ruby> 汉 <rp>(</rp><rt>Han</rt><rp>)</rp> 字 <rp>(</rp><rt>zi</rt><rp>)</rp> </ruby> </body> </html>
Effect output:
Browser Support: IE 9, Firefox, Opera, Chrome and Safari support the tag.
Note: IE 8 or earlier does not support the tag.
The above is the detailed content of How to use html ruby tags. For more information, please follow other related articles on the PHP Chinese website!