Select Language:

SUP / SUB

about SUP / SUB :
  • 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 :

  1. class :Specifies a classname for an element
  2. dir : Specifies the text direction for the content in an element
  3. id : Specifies a unique id for an element
  4. lang : Specifies a language code for the content in an element
  5. style : Specifies an inline style for an element
  6. title: Specifies extra information about an element
  7. onclick : Script to be run on a mouse click
  8. ondblclick : Script to be run on a mouse double-click
  9. onmousedown : Script to be run when mouse button is pressed
  10. onmousemove : Script to be run when mouse pointer moves
  11. onmouseout : Script to be run when mouse pointer moves out of an element
  12. onmouseover : Script to be run when mouse pointer moves over an element
  13. onmouseup : Script to be run when mouse button is released
  14. onkeydown : Script to be run when a key is pressed
  15. onkeypress : Script to be run when a key is pressed and released
  16. 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: