Try it Live Learn on Udacity. and is attributed to GeeksforGeeks.org, HTML | DOM console.groupCollapsed() Method, HTML | Responsive full page image using CSS, Creating A Range Slider in HTML using JavaScript, getAttribute() Passing data from Server to JSP, Convert an image into grayscale image using HTML/CSS. 0 Add a Grepper Answer . This is output of code. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
This text contains subscript text.
, W3Schools is optimized for learning and training. Like this: <sub>Subscript text here.</sub> Example Run xxxxxxxxxx H<sub>2</sub>O Attributes Find out everything there is about HTML text formatting usage form our examples. Syntax: <p>text <sub> text</sub></p> 20. For example, and exponents are some basic uses of the superscript content. Example. The tag also supports the Event Attributes in HTML. HTML tags are used for presenting and formatting text on a webpage. Value. What are the HTML tags that deprecated in HTML5 ? The HTML <pre> tag defines a preformatted block of text. The HTML <sub> tag defines subscript text in an HTML document. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. . Output: As we know div tag is used for grouping HTML elements together and is to apply CSS and web layout on them Lets see below example without using div tag. How to display HTML tags as plain text in HTML ? "subscript tag in html" Code Answer's. Html. Subscript text can be used for chemical formulas, like H2O to be written as H2O.Superscript: The tag is used to add a superscript text to the HTML document. Example 1. Generally, subscript tag are used in mathematical or chemistry expressions. The tag also supports the Global Attributes in HTML. In this tutorial, you will learn sub superscript tag and sup superscript tag in html 5 in hindi and urdu. Syntax In HTML, the syntax for the <sub> tag is: You should only use HTML subscript for typographical reasons, for example: Tip: in other cases, use CSS styling properties. Monospace tag. By using our site, you consent to our Cookies Policy. HTML Tutorial / By Team GyaniPandit. Subscript text is shown half a character below the standard line and is occasionally displayed in a smaller font. HTML Subscript in HTML and SUP (Superscript), The Ultimate Guide To MICROSOFT EXCEL SHORTCUT KEYS, Basic Computer Shortcut Keys to Impress Everyone, 7 Digital Marketing Strategies You Shouldnt Miss in 2022, What is Search Engine Optimization for Website, Master The Art Of Personality Development Psychology With These 7 Tips, 5 Free Blogging Sites to Consider in 2022, What is the Purpose of Blogging for Business, Top 6 Resume Writing Tips to Follow 2022, Top 5 Five Common Resume Mistakes to Avoid 2022, C++ Program to Read and Write Files Using Multiple File Handling, Create a HTML Form for User Login and Registration, Create a HTML Table with 500px Width, Border 5, Cellpadding 3 & Spacing 2, HTML Form for the Registration (Easy Way), CREATE TIME TABLE SCHEDULE USING HTML within 1 Minute, Create a Student Registration Form in HTML Code, Advantages and Disadvantages of Science and Technology, Advantages and Disadvantages of Fourth Generation of Computer, Advantages and Disadvantages of the Fifth Generation of Computer, Advantages And Disadvantages of First Generation Computer, Advantages And Disadvantages of Third Generation Computer, Advantages and Disadvantages of Second Generation Computer, Install WordPress on XAMPP Windows 10 or Windows 11. Here is a code for HTML superscript and subscript in markdown. 19. HTML Examples HTML Examples; HTML Quizzes; HTML Exercises; HTML References HTML References . Answers related to "subscript in html" . An example of subscript is N2. It has a start tag and closing tag Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. The subscript tag is used to define or format text, by shifting the text to the lower part of the current line, called the baseline. How To Add Google Maps With A Marker to a Website, Creative Common Attribution-ShareAlike 4.0 International. However, if the effect is being applied for purely stylistic purposes, use CSS.In particular, check out this free CSS snippet at GitHub which you can use to add subscripts and superscripts with CSS rather than by using the HTML <sub> and . HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples. Subscript text can be used for chemical formulas, like H2O to be written as H 2 O. Superscript: The <sup> tag is used to add a superscript text to the HTML document. Subscript is the text which a small letter/number is written after a particular letter/number. html by naly moslih on May 22 2022 Comment . Absolutely all the elements that will be displayed by a browser need a tag or two. with examples. The tag is used to display subscript texts. </p> Try it Yourself Definition and Usage The <sup> tag defines superscript text. What are the various formatting tags available in HTML ? </Sub>. h 2 +so 4 =h 2 so 4 <sub> Tag Attributes HTML <sub> tag does not support any specific attributes. Live Demo <math xmlns = "http://www.w3.org/1998/Math/MathML"> <msub> <mi>x</mi> <mn>1</mn> </msub> </math> Output x 1 Previous Page Print Page Next Page Advertisements Anything written between any formatting tag will be displayed according to the tag in the browser. Writing code in comment? 2. superscripted text. This article is attributed to GeeksforGeeks.org. HTML allows you to create superscript and subscript texts by using the <sup> and <sub> tags. Different types of formatting tags are: Bold tag. To do this you should use tag with necessary attribute "href" with symbol # (sharp) and key-word description of the anchor, like this: <a href="#top">Go to Top</a> Image Links The <a href="#"> may also be applied to images and other HTML elements. It is a paired tag. Superscript text can be used for footnotes, like WWW [1]. It gives us the ability to format the text without using CSS. Subscript text can be used for chemical formulas, like H2O. Content Model <!ELEMENT sub (#PCDATA %emphasized-text;)* > Expanded Content Model (#PCDATA | hr | email | ext-link | multi-link | uri | inline-supplementary-material . Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. Difference between