How to Add a Superscript in HTML and Markdown

Learn how to easily add superscripts using HTML <sup> tags and Markdown caret syntax for clear text formatting.

198 views

To add a superscript, use the caret (^) symbol followed by the text you want to superscript. For example, in HTML, you can use the `<sup>` tag: `<sup>2</sup>` to display 2 as a superscript. In Markdown, the caret is placed around the text like this: `2^nd^` to display 2<sup>nd</sup>.

FAQs & Answers

  1. What is the HTML tag for superscript? The HTML tag for superscript is <sup>, which wraps around the text you want to display as superscript.
  2. How do you write superscript in Markdown? In Markdown, you add superscript by placing the caret (^) symbol around the text, like this: 2^nd^.
  3. Can I use superscript in plain text emails? Plain text emails do not support formatting like superscript, so you often need to use formats like HTML emails or plain text approximations.