HTML - <sub> Tag


Advertisements


Description

The HTML <sub> tag is used for defining subscript text.

Example

Live Demo
<!DOCTYPE html>
<html>

   <head>
      <title>HTML sub Tag</title>
   </head>

   <body>
      Value of y<sub>1</sub> - y<sub>3</sub> = 17
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements
E-Books Store