4

I have a drop down menu full of chemical elements. Is there any way I could format them properly? Ex: H2O

aynber
  • 22,380
  • 8
  • 50
  • 63
Shawn
  • 10,931
  • 18
  • 81
  • 126

1 Answers1

4

You could try using the Unicode subscript characters:

<select>
    <option>Hâ‚‚O</option>
</select>

Working sample here: http://jsfiddle.net/pZ3mg/

mellamokb
  • 56,094
  • 12
  • 110
  • 136
  • They don't seem to work in my context. They end up appearing as question marks: H?O. Good idea though! – Shawn May 16 '11 at 17:16
  • @Shawn: Then the answer is no, because you're not allowed to have HTML tags inside of an ` – mellamokb May 16 '11 at 17:49