- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to mark text superscript in HTML?
To mark superscripted text in HTML, use the <sup>…</sup> tag. Just keep in mind both the opening and closing tag is mandatory while using the <sup>...</sup> tag.
The superscript text appears to be half a character above the normal line. It is displayed as a smaller font.
You can try the following code to mark superscripted text in HTML. Here, we are writing the value 2 4 using the <sup> tag,
<!DOCTYPE html> <html> <head> <title>HTML text superscript</title> </head> <body> <h1>Heading</h1> <p> Value: 2 <sup>4</sup> = 16 </p> </body> </html>
Output
- Related Articles
- How to mark deleted text in HTML?
- How to mark strikethrough text in HTML?
- How to mark inserted text in HTML?
- How to add superscript with Text using FabricJS?
- HTML DOM Superscript Object
- How to set the baseline of superscript with Text using FabricJS?
- How to set the size of superscript with Text using FabricJS?
- How to mark abbreviation or acronyms in HTML?
- How do I make sans serif superscript or subscript text in Matplotlib?
- How to mark work title using cite tag in HTML?
- How to center text in HTML?
- HTML DOM Mark Object
- How to add preformatted text in HTML?
- How to create teletype text in HTML?
- How to display deleted text in HTML?

Advertisements