# How to make subscript and superscript in Dash

**URL:** <https://community.plotly.com/t/how-to-make-subscript-and-superscript-in-dash/57395>\
**Category:** Dash Python\
**Created:** [October 8, 2021, 10:41pm UTC](https://community.plotly.com/t/how-to-make-subscript-and-superscript-in-dash/57395 "2021-10-08T22:41:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [October 8, 2021, 11:57pm UTC](https://community.plotly.com/t/how-to-make-subscript-and-superscript-in-dash/57395/2 "2021-10-08T23:57:39Z")

</div>

Hi @Mlevesque

You can use the html.Sub() and the html.Sup() for subscripts and superscripts:

```auto
html.Div(["H", html.Sub(2), "H", html.Sup(2)])

```

![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/0/7/07f80027bfeb182ba0b7cd3ce79b677ac8196f81.png)

---

_[View the full topic](https://community.plotly.com/t/how-to-make-subscript-and-superscript-in-dash/57395)._
