click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject HTML5: data-* atrributes
Date Wed, 29 Sep 2010 10:31:06 GMT
Interesting new feature in HTML5 is the ability to define your own custom attributes[1] that
will be
valid HTML5 markup. In other words these attributes will pass an HTML5 validator.

This is useful for adding metadata to controls that can be manipulated by JS code. For example,
instead of using an element's title attribute to add tooltip information, one can use
data-tooltip="This is a tooltip". Should come in handy.

Bob

[1]: http://html5doctor.com/html5-custom-data-attributes/

Mime
View raw message