Skip to content

Commit 9140df2

Browse files
committed
Add Render Text As Superscript as an HTML til
1 parent 0da720a commit 9140df2

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_742 TILs and counting..._
13+
_743 TILs and counting..._
1414

1515
---
1616

@@ -229,6 +229,7 @@ _742 TILs and counting..._
229229

230230
### HTML
231231

232+
- [Render Text As Superscript](html/render-text-as-superscript.md)
232233
- [Submit A Form With A Button Outside The Form](html/submit-a-form-with-a-button-outside-the-form.md)
233234

234235
### Internet

html/render-text-as-superscript.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Render Text As Superscript
2+
3+
There is an [HTML
4+
tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup) that
5+
tells browser engines to render text as superscript -- like when you need an
6+
exponent.
7+
8+
```
9+
<p>Render this text as <sup>superscript</sup>!</p>
10+
```
11+
12+
Here is what the above would look like:
13+
14+
<p>Render this text as <sup>superscript</sup>!</p>
15+
16+
Check out this [codepen example](https://codepen.io/jbranchaud/pen/GzoyXe)
17+
to play around with it.

0 commit comments

Comments
 (0)