News for hackers. Stuff that matters.
Re:Label.css – an easy way to label DOM elements by lancer383 on Friday May 17, 2013 @11:17AM (#5724817)
While I like the simplicity of this, I would recommend to keep accessibility in mind: information put into a data attribute will not be accessible to screenreaders, and they would miss any information stored via this method.

It may make sense to append the label information to whatever is being used for the image's ALT attribute.

Re:Label.css – an easy way to label DOM elements by hoseiin on Friday May 17, 2013 @11:47AM (#5725060)
I use data-label because i don't wanna limit labels just for images. but for the images, it's a good idea to use ALT attribute. Thanks.