Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anyone know how to add superscripts in the option tag of <select>

Tags:

html

css

styling

Does anyone know how to add superscripts in the option tag of

<select name=" ">
    <option value=" ">24<sup>th</sup></option>
</select>
like image 273
user1206479 Avatar asked Aug 03 '12 06:08

user1206479


People also ask

How do you tag a superscript?

The <sub> tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O. Tip: Use the <sup> tag to define superscripted text.

Which tag is used to superscript the text in HTML?

<sup>: The Superscript element. The <sup> HTML element specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.

What is the difference between subscript tag and superscript tag?

A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, while superscripts are above.


1 Answers

If your users have the appropriate fonts (here's a list), you can use the Unicode superscript characters:

<select name=" ">
  <option value=" ">24&#x1D57;&#x02B0;</option>
</select>
like image 161
Ilmo Euro Avatar answered Sep 28 '22 14:09

Ilmo Euro