Re: Custom attributes in HTML elements

Claudia Murialdo wrote:
> Hi,
> I need to add a few custom attributes in some HTML elements, which is
> the best way to do it in order to keep validating with w3c validation
> service?.

use html 5 and the data-whatever attribute.

For example -

<div id="something" data-hook="whatever">

Received on Friday, 12 February 2010 01:46:06 UTC