

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- 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?
- HTML Text Formatting
- 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?
- 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
- How to include an alternate text when the original element fails to display in HTML?
Advertisements