Reputation: 347
I have a dropdown field like this:
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
Can I use a superscript tag <sup>
like this?
<select>
<option><sup>1</sup></option>
<option><sup>2</sup></option>
<option><sup>2</sup></option>
</select>
Upvotes: 11
Views: 9012
Reputation: 79073
<p>Superscript numbers 0-9: ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹</p>
<p>Subscript numbers 0-9: ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉</p>
<select>
<option>superscript ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹</option>
<option>subscript ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉</option>
</select>
Upvotes: 0
Reputation: 977
You can't use another tag inside options tag. But you can do something like:
<select>
<option>¹</option>
<option>²</option>
<option>³</option>
</select>
This &sub1
, &sub2
, &sub3
is only possible for 1, 2 and 3.
You can write other numbers using codes from here: Superscript Chart
Or you can use this website to get the unicodes of alphabets: Unicode Character Search
Upvotes: 23