The SUB tag turns the enclosed text into subscript. Text that has been subscripted is lowered slightly below the baseline to appear below the surrounding text. You can also achieve similar results using the vertical-align: sub; style property.
SUB Web Browser Support:
- AvantGo Windows CE
- Chrome 1, 2, 3, 4, 5
- Firefox 1, 2, 3
- Internet Explorer 3, 4, 5, 6, 7, 8
- Netscape 2, 3, 4, 6, 7, 8
- Opera 3, 4, 5, 6, 7, 8, 9, 10
- Safari 1, 2, 3, 4, 5
- WebTV/MSN TV
SUB End Tag:
CDATA Usually text. The following tags are valid within the SUB tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, tt, u, var
SUB Valid Context:
The SUB tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var
The chemical code for water is H<sub>2</sub>O.
SUB Special Notes:
- This tag is most often used in scientific notation.
- The font size of SUB tag text is the same as the parent unless you’ve changed it implicitly.