From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/element%2Frb.html | 91 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 devdocs/html/element%2Frb.html (limited to 'devdocs/html/element%2Frb.html') diff --git a/devdocs/html/element%2Frb.html b/devdocs/html/element%2Frb.html new file mode 100644 index 00000000..cebee52a --- /dev/null +++ b/devdocs/html/element%2Frb.html @@ -0,0 +1,91 @@ +

<rb>: The Ruby Base element

+

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The <rb> HTML element is used to delimit the base text component of a <ruby> annotation, i.e. the text that is being annotated. One <rb> element should wrap each separate atomic segment of the base text.

+
+

Attributes

+

This element only includes the global attributes.

+

Usage notes

+
+

Examples

+ +

Using rb

+
+

In this example, we provide an annotation for the original character equivalent of "Kanji":

+

html

+
<ruby>
+  <rb></rb><rb></rb><rp>(</rp><rt>kan</rt><rt>ji</rt><rp>)</rp>
+</ruby>
+
+

Note how we've included two <rb> elements, to delimit the two separate parts of the ruby base text. The annotation on the other hand is delimited by two <rt> elements.

Result

+
+ + +
+
+

Separate annotations

+
+

Note that we could also write this example with the two base text parts annotated completely separately. In this case we don't need to include <rb> elements:

+

html

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

Result

+
+ + +

See the article about the <ruby> element for further examples.

+
+

Technical summary

+
Content categories None.
Permitted content As a child of a <ruby> element.
Tag omission The end tag can be omitted if the element is immediately followed by an <rt>, <rtc>, or <rp> element or another <rb> element, or if there is no more content in the parent element.
Permitted parents A <ruby> element.
Permitted ARIA roles Any
DOM interface HTMLElement
+

Specifications

+
+ + +
Specification
HTML Standard
# rb
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
rb
5Blink has support for parsing the rb element, but not for rendering rb content as expected.
79Blink has support for parsing the rb element, but not for rendering rb content as expected.
385
15Blink has support for parsing the rb element, but not for rendering rb content as expected.
5Safari has support for parsing the rb element, but not for rendering rb content as expected.
4.4Blink has support for parsing the rb element, but not for rendering rb content as expected.
18Blink has support for parsing the rb element, but not for rendering rb content as expected.
38
14Blink has support for parsing the rb element, but not for rendering rb content as expected.
4.2Safari has support for parsing the rb element, but not for rendering rb content as expected.
1.0Blink has support for parsing the rb element, but not for rendering rb content as expected.
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rb +

+
-- cgit v1.2.3