marbly — 2012-01-11T11:38:54-05:00 — #1
How do I get superscript and subscript text in alt attribute? Do I use entities?
The text is about chemical formulas.
xhtmlcoder — 2012-01-11T11:52:53-05:00 — #2
Well, you won't be able to do it with markup tags since ALT is plain text. Thus using the Unicode http://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts or similar as a fake would make most sense though obviously the results will depend on the font and encoding, etc.
rguy84 — 2012-01-11T12:23:16-05:00 — #3
If your image is a water molicule, just do "h 2 o" versus h <sub>2</sub> O
Way more info, but an interesting read: http://en.wikipedia.org/wiki/Wikipedia_talk:Manual_of_Style/Accessibility/Archive_8
marbly — 2012-01-11T18:51:08-05:00 — #4
I'm using utf-8 so I don't think there will be problems with unicode entities, I'll go that way.