NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference


This Microsoft-specific proprietary element is used with the rt element to create annotations or pronunciation guides for words and phrases. The base text should be enclosed in a <ruby> tag; the annotation, enclosed in a <rt> tag, will appear as smaller text above the base text.

Syntax (Defined by Microsoft)

class="class name(s)"(5)
contenteditable="false | true | inherit"(5.5)
dir="ltr | rtl"(5)
disabled="false | true"(5.5)
hidefocus="true | false"(5.5)
id="unique alphanumeric identifier"(5)
lang="language code"(5)
language="javascript | jscript | vbs | vbscript | xml"(5)
style="style information"(5)
title="advisory text"(5)

... base text ...
<rt>ruby text</rt>


Events Defined by Internet Explorer

onactivate, onafterupdate, onbeforeactivate, onbeforecut, onbeforepaste, oncut, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onfocusin, onfocusout, onhelp, onlosecapture, onmouseenter, onmouseleave, onmousewheel, onpaste, onpropertychange, onreadystatechange, onscroll, onselectstart

Element Specific Attributes


Sets a name for the ruby base text.


<ruby>This is the base text within the ruby element

<rt>This is the ruby text, which should appear in a smaller font
above the base text in Internet Explorer 5.0 or higher.


<ruby>Base Text
<rt>Ruby Text</rt>


Internet Explorer 5, 5.5, 6


This element works only in Internet Explorer 5.0 and higher.

The ruby element must be used in conjunction with the rt element; otherwise, it will have no meaning.

At the time of this edition's writing in 2003, this element should be used only in an Internet Explorer-exclusive environment because other browsers will not interpret it or the rt element yet, despite the rise of the Ruby module for XHTML 1.1.

(X)HTML Elements
CSS Properties
Previous: rt Next: s
< Home | About | Chapters | Examples | Errata | Reference | Site Map >