English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

manual de referência HTML

大全 de etiquetas HTML

HTML: <ruby> tag

O elemento <ruby> do HTML é usado para exibir notações de pronúncia ou comentários de caracteres de caracteres do leste asiático.

exemplo online

um comentário ruby:

!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>基础教程网(oldtoolbag.com)</title> 
</head>
<body>
<ruby>
  ming ri <rp>(</rp><rt>ming ri</rt><rp>)</rp>
</ruby>
</body>
</html>
Test to see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

IE 9+Firefox, Opera, Chrome and Safari support the <ruby> tag.

Note:IE 8 or earlier versions of IE browsers do not support the <ruby> tag.

Tag definition and usage instructions

The <ruby> tag defines ruby annotations (Chinese phonetic or characters).

used in East Asia, showing the pronunciation of East Asian characters.

to associate the <ruby> tag with <rt> and <rp> used together with tags:
The <ruby> element consists of one or more characters that need to be explained/characters for pronunciation and a <rt> element that provides this information, including an optional <rp> element that defines the content displayed when the browser does not support the "ruby" element.

HTML 4.01 and HTML5differences between

<ruby> tag is HTML5 in the new tags.

Global attributes

Support for <ruby> tag Global attributes of HTML.

Event attributes

Support for <ruby> tag HTML event attributes.