
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Display subscripted text in HTML
Use the <sub> tag to create subscripted text. The HTML <sub> tag is used for defining subscript text like,
x<sub>1</sub>+ x<sub>2</sub>
Example
You can try to run the following code to display subscripted text in HTML −
<!DOCTYPE html> <html> <head> <title>HTML sub Tag</title> </head> <body> Value of x<sub>1</sub> + x<sub>2</sub> = 17 </body> </html>
- Related Articles
- Display strikethrough text in HTML
- How to display deleted text in HTML?
- How do we display inserted text in HTML?
- How do we display a text area in HTML?
- How to display text Right-to-Left Using HTML?
- How do we include the direction of text display in HTML?
- How do we display the visible width of a text area in HTML?
- How to display a URL which explains the quote/deleted/inserted text in HTML?
- How to include an alternate text when the original element fails to display in HTML?
- HTML Text Formatting
- Create small text in HTML
- Create strong text in HTML
- Create superscripted text in HTML
- Include keyboard text in HTML
- Python - Display text to PyGame window

Advertisements