<ruby>

  • Revision slug: HTML/Element/ruby
  • Revision title: ruby
  • Revision id: 312899
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

Summary

<ruby> is an HTML element which can be used for Ruby annotations. Ruby annotations are for showing pronounciation of East Asian characters. <ruby> element is used with {{ HTMLElement("rt") }} and {{ HTMLElement("rp") }} elements.

Attributes

Like all other HTML elements, this element supports the global attributes.

Example

<ruby>
  漢 <rp>(</rp><rt>Kan</rt><rp>)</rp>
  字 <rp>(</rp><rt>ji</rt><rp>)</rp>
</ruby>

See also

  • {{HTMLElement("rt")}}
  • {{HTMLElement("rp")}}

Revision Source

<h2 id="Summary" name="Summary">Summary</h2>

<p><code>&lt;ruby&gt;</code> is an HTML element which can be used for Ruby annotations. Ruby annotations are for showing pronounciation of East Asian characters. <code>&lt;ruby&gt;</code> element is used with {{ HTMLElement("rt") }} and {{ HTMLElement("rp") }} elements.</p>


<h2 id="Attributes" name="Attributes">Attributes</h2>

<p>Like all other HTML elements, this element supports the <a href="/en-US/docs/HTML/Global_attributes" title="HTML/Global attributes">global attributes</a>.</p>


<h2 id="Example" name="Example">Example</h2>

<pre class="brush: html">
&lt;ruby&gt;
  漢 &lt;rp&gt;(&lt;/rp&gt;&lt;rt&gt;Kan&lt;/rt&gt;&lt;rp&gt;)&lt;/rp&gt;
  字 &lt;rp&gt;(&lt;/rp&gt;&lt;rt&gt;ji&lt;/rt&gt;&lt;rp&gt;)&lt;/rp&gt;
&lt;/ruby&gt;</pre>


<h2 id="See_also" name="See_also">See also</h2>
<ul>
  <li>{{HTMLElement("rt")}}</li>
  <li>{{HTMLElement("rp")}}</li>
</ul>
Revert to this revision