1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00
Files
til/html/render-text-as-superscript.md
2019-01-25 14:10:43 -06:00

18 lines
461 B
Markdown

# Render Text As Superscript
There is an [HTML
tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup) that
tells browser engines to render text as superscript -- like when you need an
exponent.
```
<p>Render this text as <sup>superscript</sup>!</p>
```
Here is what the above would look like:
<p>Render this text as <sup>superscript</sup>!</p>
Check out this [codepen example](https://codepen.io/jbranchaud/pen/GzoyXe)
to play around with it.