Home  >  Article  >  Web Front-end  >  How to use html rp tag

How to use html rp tag

藏色散人
藏色散人Original
2019-05-28 09:55:093188browse

html The rp tag is used in ruby ​​comments to define content displayed by browsers that do not support ruby ​​elements. The element consists of one or more characters that need to be interpreted/pronounced and a element, and also includes the optional element, which defines the content displayed when the browser does not support the "ruby" element.

How to use html rp tag

html How to use the rp tag?

Tag definition and usage instructions

The tag is used in ruby ​​comments to define what is displayed by browsers that do not support ruby ​​elements.

ruby comments are Chinese pinyin or characters. Used in East Asia, showing the pronunciation of East Asian characters.

Use the tag with the and tags:

The element consists of one or more characters that need to be interpreted/pronounced and a Consists of a element that provides this information, and also includes an optional element that defines content to be displayed when the browser does not support the "ruby" element.

Differences between HTML 4.01 and HTML5: The tag is a new tag in HTML5.

Example

A ruby ​​comment:

<ruby>
  漢 <rp>(</rp><rt>han</rt><rp>)</rp>
  字 <rp>(</rp><rt>zi</rt><rp>)</rp>
</ruby>

Effect output:

How to use html rp tag

Browser support: IE 9, Firefox, Opera, Chrome and Safari support the tag.

Note: IE 8 or earlier does not support the tag.

The above is the detailed content of How to use html rp tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use html li tagNext article:How to use html li tag