Tutorial by Examples

HTML5 data-* attributes provide a convenient way to store data in HTML elements. The stored data can be read or modified using JavaScript <div data-submitted="yes" class="user_profile"> … some content … </div> Data attribute structure is data-*, i.e. the n...
Data attributes were introduced in HTML5 which is supported by all modern browsers, but older browsers before HTML5 don't recognize the data attributes. However, in HTML specifications, attributes that are not recognized by the browser must be left alone and the browser will simply ignore them when...

Page 1 of 1