T
Thomas Mlynarczyk
Hi,
I wonder what is the best way of marking up the caption of an image. One
website says one could use <label> for that:
<img id="elephant" src="elephant.jpg" alt="African elephant">
<label for="elephant">African elephant</label>
But the W3C says nothing about using <label> for things other than form
controls. <caption> is only allowed for tables. Must I resort to something
like <span>?
I wonder what is the best way of marking up the caption of an image. One
website says one could use <label> for that:
<img id="elephant" src="elephant.jpg" alt="African elephant">
<label for="elephant">African elephant</label>
But the W3C says nothing about using <label> for things other than form
controls. <caption> is only allowed for tables. Must I resort to something
like <span>?