
HTML Subscript and Superscript Tags - GeeksforGeeks
Jan 14, 2025 · In HTML, the <sub> tag is used for subscript, making text appear slightly below the normal line, while the <sup> tag is used for superscript, positioning text slightly above the normal line. The <sub> tag displays text slightly below the regular text baseline. It …
HTML Subscript - GeeksforGeeks
Jan 14, 2025 · Subscript refers to a style of text formatting where characters are set slightly below the normal line of text and are usually rendered in a smaller font size. Examples of subscript usage include: How to Use Subscript in HTML? The HTML <sub> tag is specifically designed for subscript text. It is easy to use and supported by all major browsers.
HTML sub tag - W3Schools
Definition and Usage The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H 2 O. Tip: Use the <sup> tag to define superscripted text.
<sub>: The Subscript element - MDN Web Docs
Apr 10, 2025 · The <sub> HTML element specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text.
HTML Text Formatting - W3Schools
Browsers will usually underline inserted text: The HTML <sub> element defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H 2 O: The HTML <sup> element defines superscript text.
HTML Superscript and Subscript (With Examples) - Programiz
The HTML and tags are used to implement superscript and subscript. In this tutorial, we will learn about them with the help of examples.
How to Define Subscripted Text in HTML? - GeeksforGeeks
Nov 15, 2024 · 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. To make text appear as a subscript (small and below the baseline), wrap it in the <sub> tag.
Symbol Codes | Superscript and Subscript
There are several approaches to displaying superscript and subscript text on the Web, and each have their uses depending on your needs. If the superscript or subscript character is part of a …
Exploring the Power of Subscript and Superscript in ... - Code …
Feb 17, 2024 · Meaning and Purpose: Subscripts are typically used to denote indices in arrays, chemical formulas, mathematical expressions, and more. Examples of Common Uses in Programming: Think mathematical equations like x₁₀, chemical equations such as H₂O, or even data representation like a[0].
HTML Tutorial - Subscript
For a subscript we will use the <sub> tag, as you can see: This is a subscript text. The subscript tag, same as the superscript tag can be used at writing the mathematical expressions. Still, the …