HTML CSS examples for HTML Tag:sup
You use the sup element to mark superscripts.
Superscripts are used in mathematical expressions.
The sup element summary
Item | Value |
---|---|
Element | sup |
Local Attributes | None |
Tag Style | Start and end tag required |
New in HTML5 | No |
Changes in HTML5 | None |
Style Convention
sup {
vertical-align: super;
font-size: smaller;
}
The following code shows the sub and sup elements in use.
<!DOCTYPE html> <html> <head> <title>Example</title> </head> <body> The point x<!-- w w w. j ava 2 s . c om--> <sub>10</sub> is the 10 <sup>th</sup> point. </body> </html>