Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1069122 of <rt>

  • Revision slug: Web/HTML/Element/rt
  • Revision title: <rt>
  • Revision id: 1069122
  • Created:
  • Creator: PuercoPop
  • Is current revision? Yes
  • Comment The tag can be omitted, adding the omission information

Revision Content

Summary

The HTML <rt> Element embraces pronunciation of characters presented in a ruby annotations, which are used to describe the pronunciation of East Asian characters. This element is always used inside a {{ HTMLElement("ruby") }} element.

Content categories None.
Permitted content Phrasing content.
Tag omission The end tag may be omitted if the {{HTMLElement("rt")}} element is immediately followed by an {{HTMLElement("rt")}} or {{HTMLElement("rp")}} element, or if there is no more content in the parent element
Permitted parent elements A {{HTMLElement("ruby")}} element.
DOM interface {{domxref("HTMLElement")}}

Attributes

This element only includes the global attributes.

Example

<ruby>
  漢 <rt>Kan</rt>
  字 <rt>ji</rt>
</ruby>

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-rt-element', '<rt>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-rt-element', '<rt>')}} {{Spec2('HTML5 W3C')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5.0 {{CompatGeckoDesktop(38)}} 5.0 {{CompatNo}} 5.0
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile(38)}} {{CompatVersionUnknown}} {{CompatNo}} {{CompatVersionUnknown}}

See also

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

{{ HTMLRef }}

Revision Source

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

<p>The <strong>HTML <code>&lt;rt&gt;</code> Element</strong> embraces pronunciation of characters presented in a ruby annotations, which are used to describe the pronunciation of East Asian characters. This element is always used inside a {{ HTMLElement("ruby") }} element.</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row"><a href="/en-US/docs/Web/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></th>
   <td>None.</td>
  </tr>
  <tr>
   <th scope="row">Permitted content</th>
   <td><a href="/en-US/docs/Web/HTML/Content_categories#Phrasing_content" title="HTML/Content_categories#Phrasing_content">Phrasing content</a>.</td>
  </tr>
  <tr>
   <th scope="row">Tag omission</th>
   <td>The end tag&nbsp;may be omitted if the {{HTMLElement("rt")}}&nbsp;element is immediately followed by an&nbsp;{{HTMLElement("rt")}}&nbsp;or&nbsp;{{HTMLElement("rp")}}&nbsp;element, or if there is no more content in the parent element</td>
  </tr>
  <tr>
   <th scope="row">Permitted parent elements</th>
   <td>A {{HTMLElement("ruby")}} element.</td>
  </tr>
  <tr>
   <th scope="row">DOM interface</th>
   <td>{{domxref("HTMLElement")}}</td>
  </tr>
 </tbody>
</table>

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

<p><span style="line-height:21px">This element only includes the&nbsp;</span><a href="/en-US/docs/Web/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height:21px">.</span></p>

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

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

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

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'text-level-semantics.html#the-rt-element', '&lt;rt&gt;')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>&nbsp;</td>
  </tr>
  <tr>
   <td>{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-rt-element', '&lt;rt&gt;')}}</td>
   <td>{{Spec2('HTML5 W3C')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>5.0</td>
   <td>{{CompatGeckoDesktop(38)}}</td>
   <td>5.0</td>
   <td>{{CompatNo}}</td>
   <td>5.0</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoMobile(38)}}</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also" name="See_also">See also</h2>

<ul>
 <li>{{HTMLElement("ruby")}}</li>
 <li>{{HTMLElement("rp")}}</li>
</ul>

<p>{{ HTMLRef }}</p>
Revert to this revision