TheDeveloperBlog.com

Home | Contact Us

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

HTML sup Tag

HTML sup Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <sup> tag

HTML <sup> tag is termed as a superscript tag which is used to define superscript text. The text within <sup> tag appears with an upper baseline and renders with smaller font size than surrounding text.

The <sup> tag is useful for defining Mathematical formulas and footnotes.

Syntax

     <sup>......</sup>

Following are some specifications about the HTML <sup> tag

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

Example

<!DOCTYPE html>
<html>
<head>
	<title>HTML sup Tag</title>
	<style>
	   body{
		text-align: center;
		}
	</style>
</head>
<body>
 <h2>Example of sup tag</h2>
  Following is the famous Pythagorean Theorem: 
  <p style="font-size: 20px; color: green;"><var>a</var><sup>2</sup>+<var>b</var><sup>2</sup>=<var>c</var><sup>2</sup>
  </p>
  <p>Where a, b, and c represents the sides of right angle triangle</p>
</body>
</html>
Test it Now

Output:

HTML sup tag

Attribute:

Tag-specific attributes:

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

Global attribute:

The <sup> tag supports the Global attributes in HTML.

Event attribute:

The <sup> tag supports the Event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<sup>YesYesYesYesYes
Next TopicHTML svg 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