Tuesday, August 31, 2010

math formula in html

Superscript and Subscript

With the Tags

You can use the <sup></sup> tag to create superscript text and <sub></sub> to create su-script text. Or you can use the codes below.
Code: x<sup>x+1</sup>
Result: xx+1
Code: x<sub>i+1</sub>


Result: xi+1

With the Codes

Code: x&sup2;

Result:
Code: x&#8308;



Result: x⁴
More detail see the link

No comments:

Post a Comment