Code has been added to clipboard!

HTML rp Tag

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

HTML rp Tag: Main Tips

  • HTML rp tags define an HTML ruby fallback parenthesis element.
  • It proves useful when the user's browser does not support ruby annotations.
  • You have to place rp tags right before or after an <rt> element.

Short rp Tag Tutorial

HTML rp tags can be used to define a fallback option for the browsers that have no ruby text support:

Example
<ruby>攻殻
  <rp></rp>
  <rt>こうかく</rt>
  <rp></rp>
</ruby>

You should use rp HTML tags to specify which characters need to be displayed to convey ruby text properly. In most cases, it is parentheses. If a pair of them wrap an <rt> element, each parenthesis should be surrounded by a pair of rp tags.

Tip: you can check which browser versions support ruby annotations here.

Browser Support

Chrome
5+
Edge
-
Firefox
38+
IE
5+
Opera
15+
Safari
5+

Mobile Browser Support

Chrome
All
Firefox
38+
Opera
14+
Safari
All
Basics
Introduction
Syntax
Editors
Basic Examples
Head Section
<!DOCTYPE>
Tags and Elements
Semantic Elements
Tags Reference
Attributes
Comments
Block and Inline Elements
Forms
Form Elements
Input
Responsive Web Design
Inline Scripts
Uniform Resource Locator
Redirect
XHTML
Geolocation
Drag and Drop
Local Storage
Web Workers
Server-Sent Events
Character Encoding
Text Formatting
Quotation and Citation Elements
Headings
Paragraphs
Links
Tables
Lists
Symbols
Space
Tab
Styles
Computer Code
Layout
Classes
Colors
Images
iframes
Audio Player
Video Player
YouTube Videos
Multimedia
Canvas
SVG
<!-- -->
<a>
<abbr>
<acronym> DEPRECATED
<address>
<applet> DEPRECATED
<article>
<aside>
<audio>
<b>
<base>
<basefont> DEPRECATED
<bdi>
<bdo>
<big> DEPRECATED
<blink> DEPRECATED
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center> DEPRECATED
<cite>
<code>
<col>
<colgroup>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<dir> DEPRECATED
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<font> DEPRECATED
<footer>
<form>
<frame> DEPRECATED
<frameset> DEPRECATED
<h1> – <h6>
<head>
<header>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<keygen> DEPRECATED
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<menuitem> DEPRECATED
<meta>
<meter>
<nav>
<noframes> DEPRECATED
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike> DEPRECATED
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt> DEPRECATED
<u>
<ul>
<var>
<video>
<wbr>