HTML Tag <SUB>

HTML Tag <SUB>

<SUB> Indicates subscript text.

Attribute of <SUB> Tag

CLASS

Indicates which style class applies to the <SUB> element.

H<SUB CLASS="dkm">2</SUB>O

Possible Values

Any Class Name.



ID

Assigns a unique ID selector to an instance of the <SUB> tag. When you then assign a style to that ID selector, it affects only that one instance of the <SUB> tag.

H<SUB ID="dkm">2</SUB>O

Possible Values

Any ID Name.



STYLE

Specifies Style Sheet commands that apply to the contents within the <SUB> tags.

<SUB STYLE="background: red">

Possible Values

CSS Property with value.



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the subscripted text.

Welcome to cs-tutorial.com <SUB TITLE="dkm">a new way of study..</SUB>

Possible Values

Any text Message..




Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad