For HTML the class
-attribute is used (similar to some microformats approaches):
<span class="axs checkbox checked">
Include decorative fruit basket
</span>
<span id="slider"
class="myslider myselector2 axs slider valuemin-0 valuemax-50 valuenow-33">