click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject Re: HTML5: data-* atrributes
Date Thu, 30 Sep 2010 04:26:50 GMT
On 30/09/2010 12:20, florin.g wrote:
> 
> So is it time to move away from using any scripting inside an html page? Not
> even velocity?

No not at all. These attributes are defined by the new HTML5 specification, so it could come
in
handy however you create the markup:

<div data-tooltip="This is a tooltip">
....
</div>

The above markup will be valid HTML5, even though no attribute called "data-tooltip" exists
for the
div element.

HTML5 is still evolving so this feature might not be in the final spec. I just though it is
a useful
feature.

Kind regards

Bob

Mime
View raw message