How to Define Subscripted Text in HTML? Last Updated : 15 Nov, 2024 Comments Improve Suggest changes Like Article Like Report 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 Subscripted Text In HTMLTo make text appear as a subscript (small and below the baseline), wrap it in the <sub> tag.You can use the <sub> the tag inside elements like <p>, <h1>, <div>, etc., wherever you want subscripted text.This is especially useful for scientific notations, like H<sub>2</sub>O for water.Example 1: Defining subscripted text in the molecular formula in HTML. html <p> Almost every developer's favorite molecule is H<sub>2</sub>O. </p> OutputSubscripted TextExample 2: Another example of subscripted text in HTML. HTML <p>A sub element is displayed like this</p> <p>This text contains <sub>subscript text</sub> </p> OutputOutput Comment More infoAdvertise with us Next Article How to Define Subscripted Text in HTML? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Tags HTML-Misc HTML-Questions +1 More Similar Reads How to Define Superscripted Text using HTML? 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 1 min read How to Style Text in HTML? The HTML style attribute adds styles to an element, such as color, font, size, and more. Here, we are going to learn how to style Text in HTML.These are the following methods:Table of ContentUsing CSS StylesUsing Element for StylingUsing CSS StylesThe <b> tag makes text bold, while <strong 2 min read How to define keyboard input in HTML5 ? The phrase tag is used to define the keyboard input. The text enclosed by <kbd> tag is typically displayed in the browserâs default monospace font. In this article, we define the keyboard input by using various types of tags like <kbd>, <code>, <em>, <var>, and <samp 1 min read 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 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 Like