How to Define Superscripted Text using HTML? Last Updated : 15 Nov, 2024 Comments Improve Suggest changes Like Article Like Report Superscript text is used for footnotes, mathematical exponents, and other notations. To define superscripted text in HTML5, use the <sup> tag. This tag adds superscript text to your HTML document, displaying it half a character above the normal line and often in a smaller font. Syntax<sup> Contents... </sup>Steps To Define Superscripted TextTo indicate variables, wrap each one in a <var> tag and add <sup> for exponents. This is useful for showing mathematical equations like a2+b2=c2a^2 + b^2 = c^2a2+b2=c2.To make numbers appear as exponents, wrap them in the <sup> tag.Example 1: Example of superscripted text of the Pythagorean theorem using HTML. html <p> The <em>Pythagorean theorem</em> is often expressed as the following equation: </p> <p> <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var> </p> OutputSuperscripted textExample 2: Another example to shows superscripted text using HTML. html <p> A sup element is displayed like this: </p> <p> This text contains <sup>superscript text</sup> </p> OutputSuperscripted text Comment More infoAdvertise with us Next Article How to Define Superscripted Text using HTML? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML5 HTML-Misc HTML-Questions +1 More Similar Reads How to define preformatted text using HTML? To define a preformatted text in HTML use the <pre> tag in the document. It is used to define the block of preformatted text that preserves the text spaces, line breaks, tabs, and other formatting characters that are ignored by web browsers. Text in the pre-tag is displayed in a fixed-width fo 1 min read How to Define Subscripted Text in HTML? The subscripted text is defined using the <sub> element, which marks text that appears slightly below the normal line of text. This tag is commonly used for scientific and mathematical notations, chemical formulas (e.g., HâO), and footnotes. Syntax<sub> Content... </sub>Define Subs 1 min read How to define important text using HTML5 ? In this article, we define an important text by using the <strong> tag in HTML. It is the parsed tag and used to show the importance of the text. It reflects the text as bold. Syntax: <strong> Contents... </strong> Example 1: html <!DOCTYPE html> <html> <head> 1 min read How to define marked/highlighted text using HTML? To define highlighted or marked text in HTML5, the <mark> tag is employed. It effectively highlights specific text within a paragraph, offering a straightforward way to visually emphasize content. Introduced in HTML5, the `<mark>` tag enhances readability and focus within web content.Syn 1 min read How to make a text italic using JavaScript ? Javascript provides various methods to modify the text according to our need. In this article, we are going to see how we can make the text italics in javascript. string.italics( ) is the method use to make the text italics. Basically, italics text are created by using the <i> </i> tag i 1 min read Like