CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
HTML Entity for Superscript Digit Two (²)
HTML Entity for Superscript Digit Two (²)
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Copy
<!DOCTYPE html> <html> <head> <style> #point::after { content: "\00B2"; } </style> </head> <body> <h1>Superscript Digit Two (²) in HTML</h1> <p>Using Hex Code: ²</p> <p>Using HTML Code: ²</p> <p>Using Named Entity: ²</p> <p id="point">Using CSS Entity: </p> <p>Examples: x², m², km²</p> <p>Semantic alternative: x<sup>2</sup></p> </body> </html>
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run