Code has been added to clipboard!

Using ruby HTML Tag

Reading time 1 min
Published Jun 29, 2017
Updated Sep 11, 2019

ruby HTML: Main Tips

  • <ruby> tag represents ruby annotations for East Asian characters.
  • It is used to convey the right pronunciation, as some characters have multiple options.
  • HTML ruby tag was introduced in HTML5 and supports all global attributes.
  • You cannot omit the ending tag.
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid certificates of completion
Coursera
Pros
  • Professional service
  • Flexible timetables
  • A variety of features to choose from
Main Features
  • Professional certificates of completion
  • University-level courses
  • Multiple Online degree programs
Datacamp
Pros
  • Great user experience
  • Offers quality content
  • Very transparent with their pricing
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable

Providing Ruby Annotations

HTML ruby tags are used to provide the information on how to pronounce Japanese, Chinese, and Korean characters:

Example
<ruby>攻殻
  <rp></rp>
  <rt>こrうかく</rt>
  <rp></rp>
  機動隊
  <rp></rp>
  <rt>きsどうたtい</rt>
  <rp></rp>
</ruby>

As you can see in the example above, there are a few elements used for HTML ruby annotations:

  • <ruby> defines a connection between the base text and the ruby HTML text.
  • <rt> specifies the ruby HTML text element, which may contain inline elements.
  • <rp> surrounds the ruby parentheses for the browsers that do not support ruby HTML text.

Note: the level of support for ruby annotations differs greatly between browsers and their versions: you can check it here.

Browser Support

Browser image
Chrome
5+
Browser image
Edge
All
Browser image
Firefox
38+
Browser image
IE
5+
Browser image
Opera
15+
Browser image
Safari
5+

Mobile Browser Support

Browser image
Chrome
All
Browser image
Firefox
38+
Browser image
Opera
14+
Browser image
Safari
All

Latest Udacity Coupon Found:

Verified STAFF PICK

75% OFF COURSES

Udacity Black Friday Offer

The best time to save on Udacity courses is now - follow this coupon to access a 75% Udacity Black Friday discount & enjoy learning at a very low cost!

Expiration date: 03/03/2021
3176 People Used
Only 97 Left
Rating
5.0