html superscript

Today, We want to share with you html superscript.In this post we will show you bootstrap superscript, hear for html registered trademark superscript we will give you demo and example for implement.In this post, we will learn about String Methods List Using JavaScript with an example.

Free Live Chat for Any Issue

html formula tag

Example : 1 HTML <sup> Tag

<p>This Sample Demo for text Data contains <sup>superscript</sup> text.</p>

Default CSS Settings

sup {
  vertical-align: super;
  font-size: smaller;
}

Example : 2 HTML | Subscript and Superscript Tags

<!DOCTYPE html> 
<html> 

<body> 
	<p>DemoExample <sub>subscript text</sub></p> 
	<p>DemoExample <sup>superscript text</sup></p> 
</body> 

</html>					 

Example : 3 Superscript Example With CSS:

<!DOCTYPE html> 
<html> 
	
<head> 
	<style> 
	sup { 
		vertical-align: super; 
		font-size: small; 
	} 
	</style> 
</head> 

<body> 
	<p>A sup element is displayed like this:</p> 
	<p>This text Data contains <sup>superscript text</sup></p> 
	<p>Update the default CSS Config to see the effect.</p> 
</body> 

</html> 

HTML Superscript and Subscript Text

<!DOCTYPE html>
<html lang="en">
<head>
<style>
 
</style>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>Superscript and Subscript - www.pakainfo.com</title>
   <style>
       sub {
           vertical-align: sub;
           font-size: smaller;
       }
       sup {
           vertical-align: super;
           font: smaller;
       }
   </style>
</head>
<body>
   <div style="text-align:center;" class="container">
       <div>
           <h3>Superscript</h3>
           <span>E=MC<sup>2</sup></span>
           <br />
           <span>1.7 x 10<sup>4</sup></span>
       </div>
       <div>
           <h3>Subscript</h3>
           <span>H<sub>2</sub>O</span>
           <br />
           <span><sup>โ€ 1</sup>Pakainfo.com free website source code downlaod, 2020.</span>
       </div>
   </div>
</body>
</html>

I hope you get an idea about sup> tag not working.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, donโ€™t forget to share.