TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML ruby tag

HTML ruby tag with examples, html5, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

HTML <ruby> tag

HTML <ruby> tag is used to represent ruby annotations on the web page. Ruby annotations are useful if we want to show the pronunciation of East Asian characters like Chinese and Japanese Chinese.

The <ruby> tag enclosed one or more <rt> elements which give the pronunciation of ruby annotations and displays above the annotation characters. It can also contain <rp> (optional) element which is used as a fall-back parenthesis for the browser which does not support the ruby annotation.

HTML <ruby> tag can also be used to represent small annotation which is relevant to the main content, apart from East Asian language.

The <ruby> tag is new in HTML5.

Syntax

   <ruby>......</ruby>

Following are some specifications about the HTML <ruby> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage formatting

Example

<!DOCTYPE html>
<html>
<head>
	<title>HTML ruby tag</title>
	<style>
	body{
		text-align: center;
	}
		rt{ font-size: 10px;
			color: green;
		}
	</style>
</head>
<body>
<h1>Example of ruby tag</h1>
<p>East Asian Langugae Annotation</p>
<ruby>
	 大哥<rt>Big Brother</rt>
</ruby>

<p>Noraml Annotaion Representation of Expiry date</p>
<ruby>
	2022<rp>(</rp><rt>Year</rt><rp>)</rp>
	 12<rp>(</rp><rt> Month</rt><rp>)</rp>
	06<rp>(</rp><rt>Date</rt><rp>)</rp>
</ruby>
</body>
</html>
Test it Now

Output:

HTML ruby tag

Attribute:

Tag-specific attributes:

The <ruby> tag does not contain any specific attribute.

Global attribute:

The <ruby> tag supports the global attributes in HTML

Event attribute:

The <ruby> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<ruby>YesYesYesYesYes
Next TopicHTML s Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf