- sub element defines subscript text. Subscript text appears half a character below the baseline. Subscript text can be used for chemical formulas, like H2O.
- sup element defines superscript text. Superscript text appears half a character above the baseline. Superscript text can be used for footnotes, like WWW[1].
SUP / SUB attrib :
- class :Specifies a classname for an element
- dir : Specifies the text direction for the content in an element
- id : Specifies a unique id for an element
- lang : Specifies a language code for the content in an element
- style : Specifies an inline style for an element
- title: Specifies extra information about an element
- onclick : Script to be run on a mouse click
- ondblclick : Script to be run on a mouse double-click
- onmousedown : Script to be run when mouse button is pressed
- onmousemove : Script to be run when mouse pointer moves
- onmouseout : Script to be run when mouse pointer moves out of an element
- onmouseover : Script to be run when mouse pointer moves over an element
- onmouseup : Script to be run when mouse button is released
- onkeydown : Script to be run when a key is pressed
- onkeypress : Script to be run when a key is pressed and released
- onkeyup : Script to be run when a key is released
SUP / SUB example :
| <p>This text contains <sub>subscript</sub> text.</p> <p>This text contains <sup>superscript</sup> text.</p> |
origin by : w3schools.com


0 comments:
Post a Comment