• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Programming Expert

Solving All of Your Programming Headaches

  • HTML
  • JavaScript
  • jQuery
  • PHP
  • Python
  • SAS
  • Ruby
  • About
You are here: Home / HTML / HTML superscript – How to Raise Text in HTML

HTML superscript – How to Raise Text in HTML

December 26, 2021 Leave a Comment

To raise text in HTML we can use the HTML superscript tag <sup></sup>.

<sup>text</sup>

Let’s say I have the following HTML:

<div id="div1">Today is December 3rd</div>

If we want to raise the “rd” in 3rd, we can do this using the HTML superscript tag .

<div id="div1">Today is December 3<sup>rd</sup></div>

This would result in the following code:

Today is December 3rd

Other Articles You'll Also Like:

  • 1.  What is the Correct HTML for Making a Text Input Field?
  • 2.  How to Call a JavaScript Function From HTML
  • 3.  HTML subscript – How to Lower Text in HTML
  • 4.  HTML span width – Set the Width of a Span in HTML
  • 5.  outerHTML – How to Get and Change the outerHTML Property of an Element
  • 6.  How to Make a Div Scrollable in HTML
  • 7.  Sort List of Divs with Data Attribute with Radio Buttons Using Javascript
  • 8.  What is the Correct HTML for Inserting a Background Image?
  • 9.  How to Filter a List of Divs with a Text Input Bar Using Javascript
  • 10.  How Do You Select All p Elements Inside a Div Element?

About The Programming Expert

The Programming Expert is a compilation of a programmer’s findings in the world of software development, website creation, and automation of processes.

Programming allows us to create amazing applications which make our work more efficient, repeatable and accurate.

At the end of the day, we want to be able to just push a button and let the code do it’s magic.

You can read more about us on our about page.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About The Programming Expert

the programming expert main image

Welcome to The Programming Expert. We are a group of US-based programming professionals who have helped companies build, maintain, and improve everything from simple websites to large-scale projects.

We built The Programming Expert to help you solve your programming problems with useful coding methods and functions in various programming languages.

Search

Learn Coding from Experts on Udemy

Looking to boost your skills and learn how to become a programming expert?

Check out the links below to view Udemy courses for learning to program in the following languages:

Copyright © 2023 · The Programming Expert · About · Privacy Policy