Is it possible to have <sub> scripts in <option> s in html?

I have a drop down menu full of chemical elements. Is there a way to format them correctly? Example: H 2 O

+4
source share
1 answer

You can try using Unicode characters :

<select> <option>H₂O</option> </select> 

A working example is here: http://jsfiddle.net/pZ3mg/

+4
source

All Articles