---
title: s.superscript
description: "## Syntax **s.superscript** ## Purpose The annotation *s.superscript* is used to create superscript text. The following text shows an example of where you would use the annotation s.superscript. [![Sample text with superscript](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-example.png)](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-example.png) Here is what your rule may look like.…"
url: "https://www.stilo.com/docs/migrate/typography-spans/s-superscript/"
updated: "2021-04-29"
category: Annotations / Typography Spans
tags:
  - Annotations
---

# s.superscript

## Syntax

**s.superscript**

## Purpose

The annotation *s.superscript* is used to create superscript text.

The following text shows an example of where you would use the annotation s.superscript.

[![Sample text with superscript](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-example.png)](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-example.png)

Here is what your rule may look like.

[![Rule for s.superscript](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-rule.png)](https://www.stilo.com/wp-content/uploads/2021/03/s-superscript-rule.png)

This is what your output may look like.

```
<p>This is the 2<sup>nd</sup> sentence, and it contains a superscript.</p>
```
