I've spent the last few days analyzing Wikipedia's HTML code for images and captions. The current code is quite good, but verbose and it has redundancies. Here is a proposal that describes how to simplify and improve the code:
http://www.princexml.com/howcome/2009/wikipedia/image/
The proposed solution reduces the number of elements from 10 to 6 and the code size is reduced by more than 50%.
Cheers,
-h&kon Håkon Wium Lie CTO °þe®ª howcome@opera.com http://people.opera.com/howcome