About 135,000 results
Open links in new tab
  1. 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.

  2. 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 …

  3. 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.

  4. 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: Chemical formulas: H 2 O, CO 2; Mathematical notations: x 1, y 2; Technical references: A ij; How to Use Subscript in HTML?

  5. How to Define Subscripted Text in HTML? - GeeksforGeeks

    Nov 15, 2024 · To 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 …

  6. : The Subscript element - HTML: HyperText Markup Language

    Apr 10, 2025 · The <sup> HTML element that produces superscript. Note that you cannot use sup and sub both at the same time: you need to use MathML to produce both a superscript directly above a subscript next to the chemical symbol of an element, representing its atomic number and its nuclear number. The <msub>, <msup>, and <msubsup> MathML elements.

  7. HTML cheatsheet for syntax and common tasks

    Apr 23, 2025 · While using HTML it can be very handy to have an easy way to remember how to use HTML tags properly and how to apply them. MDN provides you with extended HTML reference documentation as well as a deep instructional set of HTML guides. However, in many cases we just need some quick hints as we go. That's the whole purpose of the cheat sheet, to give you some quick accurate ready to use code ...

  8. HTML <sub> Tag - W3docs

    The tag is used to define the subscript text that appears half a character below the line, and is rendered in a smaller font. See examples and Syntax.

  9. HTML Subscript Tag - Naukri Code 360

    Jan 11, 2025 · In this article, we will discuss how to use the <sub> tag to create subscript text in HTML, understand its functions, and see examples of how it's applied in web pages. Subscript is used in HTML to position text lower than the normal line of text.

  10. HTML superscript and subscript tag explained - sebhastian

    Aug 13, 2021 · HTML allows you to create superscript and subscript texts by using the <sup> and <sub> tags. HTML sup tag Superscripts raise the text above the normal line and commonly used to mark a footnote in a paragraph.

  11. Some results have been removed
Refresh