
HTML <sub> Tag - W3Schools
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.
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 …
Subscripts in HTML: Essential for Scientific Formulas - my …
Mar 13, 2024 · Discover how to use subscripts in HTML to represent scientific formulas simply and accurately. Learn its benefits and applications.
HTML Subscript - GeeksforGeeks
Jan 14, 2025 · Examples of subscript usage include: Chemical formulas: H 2 O, CO 2; Mathematical notations: x 1, y 2; Technical references: A ij; 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. Syntax <sub>content</sub> Using Subscript in HTML 1. Chemical Formulas
How to Define Subscripted Text in HTML? - GeeksforGeeks
Nov 15, 2024 · 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.
Display Chemistry Formula in HTML Input - Online Tutorials Library
Apr 20, 2023 · In HTML, for displaying the chemistry formula in the HTML input, we are going to use the subscript and superscript tags. Let's consider a simple example. For the above, we are going to apply the HTML superscript and subscript tags to get the output of the chemical formula as mentioned above.
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.
<sub> Tag in HTML - Scaler
Jun 30, 2022 · The <sub> tag in HTML is found within the <body> tag. It is used to display text in subscript, for example, H 2 O H_2O H 2 O. Here, 2 is smaller in size and appears below the normal text. It is used in chemical formulae or mathematical expressions. Some of the examples of <SUB> tag are given below: Syntax
HTML Tutorial - Subscript
Still, the place where we mostly find it is the chemical formulas. H <sub> 2 </sub> 0 - Water <br /> . O <sub> 2 </sub> - Oxygen <br /> . CO <sub> 2 </sub> - Carbon dioxide <br /> . H <sub> 2 </sub> SO <sub> 4 </sub> - Sulfuric acid. </p> As you can see in the example presented above its use is very practical.
Using the HTML Tag for Subscript Text: Creating Mathematical …
Learn how to use the HTML tag to create subscript text for mathematical formulas, chemical formulas, and other notations. This tutorial explains its functionality, typical rendering, and how to customize its appearance using CSS for improved readability and visual appeal.
- Some results have been removed