HTML Entity - 2 Superscript

Last Updated:

2 Superscript

²
unicodeU+000B2
hex code²
html code²
html entity²
css code\000B2

Example

The following example will demonstrate how to use '2 Superscript' HTML entity using HTML and CSS. For a complete reference, go to our HTML Entities.

HTML Online Compiler
<!DOCTYPE html> <html> <head> <style> #point:after{ content: "\000B2"; } </style> </head> <body> <p>2 superscript using Hexa Decimal: &#xb2;</p> <p>2 superscript using HTML Code: &#178;</p> <p>2 superscript using HTML Entity: &sup2;</p> <p id="point">2 superscript using CSS Entity: </p> </body> </html>

Browser Support

Devicedesktopmobile
Browsergoogle chromesafarifirefoxinternet Exploreredgeoperagoogle chromesafarifirefoxedgeoperaandroid webviewsamsung internet
²YesYesYesYesYesYesYes?YesYesYesYes?

Share this Page

Meet the Author