Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Superscript
Superscript

Superscript is a formatting element used to make text upward and is used to make formulae, you can make any text in upper direction by using the superscript.

Syntax

<sup>Content</sup>

Or

<tag><sup>Content</sup></tag>


You can apply supersript element to any element and use any where within a HTML document.


Example

X2+Y2=0 is mathematical formula


Superscript is a pair tag and output of superscript element is upward text like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create heading 3
  • Assign text Trade Mark TM to heading 3
  • Use <sup> element to make TM upward of Trade Mark text

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

Trade MarkTM


Don't forget superscript is non empty element which means it always comes in pair.