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:
@@ -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
|
||||
|
||||
17
html/render-text-as-superscript.md
Normal file
17
html/render-text-as-superscript.md
Normal 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.
|
||||
Reference in New Issue
Block a user