
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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>
Advertisements