1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58: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

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/).
_742 TILs and counting..._
_743 TILs and counting..._
---
@@ -229,6 +229,7 @@ _742 TILs and counting..._
### HTML
- [Render Text As Superscript](html/render-text-as-superscript.md)
- [Submit A Form With A Button Outside The Form](html/submit-a-form-with-a-button-outside-the-form.md)
### Internet

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.