1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Render Text As Superscript as an HTML til

This commit is contained in:
jbranchaud
2019-01-25 14:10:43 -06:00
parent 0da720a34f
commit 9140df2244
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
# 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.